Redmine/test/exemplars/issue_category_exemplar.rb

10 lines
191 B
Ruby
Raw Normal View History

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