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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user