view test/exemplars/enumeration_exemplar.rb @ 891:017c49d4acde feature_75

Close obsolete branch feature_75
author Chris Cannam
date Fri, 11 Feb 2011 13:43:27 +0000
parents 513646585e45
children cbb26bc654de
line wrap: on
line source
class Enumeration < ActiveRecord::Base
  generator_for :name, :method => :next_name
  generator_for :type => 'TimeEntryActivity'

  def self.next_name
    @last_name ||= 'Enumeration0'
    @last_name.succ!
    @last_name
  end
end