mirror of
https://github.com/redmine/redmine.git
synced 2024-09-13 23:56:26 +02:00
10 lines
188 B
Ruby
10 lines
188 B
Ruby
|
class Document < ActiveRecord::Base
|
||
|
generator_for :title, :method => :next_title
|
||
|
|
||
|
def self.next_title
|
||
|
@last_title ||= 'Document001'
|
||
|
@last_title.succ!
|
||
|
@last_title
|
||
|
end
|
||
|
end
|