obsolete.ChilliProject/test/exemplars/time_entry_activity.rb

11 lines
236 B
Ruby

class TimeEntryActivity < Enumeration
generator_for :name, :method => :next_name
generator_for :type => 'TimeEntryActivity'
def self.next_name
@last_name ||= 'TimeEntryActivity0'
@last_name.succ!
@last_name
end
end