Redmine/test/exemplars/document_exemplar.rb

10 lines
188 B
Ruby
Raw Normal View History

class Document < ActiveRecord::Base
generator_for :title, :method => :next_title
def self.next_title
@last_title ||= 'Document001'
@last_title.succ!
@last_title
end
end