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
This commit is contained in:
Eric Davis
2009-10-19 00:07:37 +00:00
parent 6531c3f887
commit a150689be9
5 changed files with 139 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
class User < ActiveRecord::Base
class User < Principal
generator_for :login, :method => :next_email
generator_for :mail, :method => :next_email
generator_for :firstname, :method => :next_firstname
+10
View File
@@ -0,0 +1,10 @@
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