fork failing when calling initialize_dup

initialize_dup has been made private as of ruby 2.0.0. I have
corrected it to call the publicly available dup method
This commit is contained in:
Angus MacArthur 2013-05-03 11:59:26 -04:00
parent 204bd0b066
commit 793ab5a1ab
1 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,7 @@ module Projects
end
def execute
project = Project.new
project.initialize_dup(@from_project)
project = @from_project.dup
project.name = @from_project.name
project.path = @from_project.path
project.namespace = current_user.namespace