obsolete.ChilliProject/test/exemplars/version_exemplar.rb

11 lines
186 B
Ruby

class Version < ActiveRecord::Base
generator_for :name, :method => :next_name
def self.next_name
@last_name ||= 'Version 1.0.0'
@last_name.succ!
@last_name
end
end