obsolete.ChilliProject/test/exemplars/role_exemplar.rb

9 lines
157 B
Ruby
Raw Normal View History

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