Redmine/test/exemplars/version_exemplar.rb
Eric Davis a150689be9 Improved Project#copy to copy more data from the source Project. #3367
* Versions
* Associate the copied issues with the new versions
* Wiki
* WikiPages
* WikiContents
* IssueCategories

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2934 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-10-19 00:07:37 +00:00

11 lines
186 B
Ruby

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