Redmine/test/exemplars/enabled_module_exemplar.rb

11 lines
187 B
Ruby
Raw Normal View History

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