Commit 793ab5a1abf8085b25ac389fc557958579540588
1 parent
204bd0b0
Exists in
master
and in
4 other branches
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
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
app/contexts/projects/fork_context.rb
| ... | ... | @@ -7,8 +7,7 @@ module Projects |
| 7 | 7 | end |
| 8 | 8 | |
| 9 | 9 | def execute |
| 10 | - project = Project.new | |
| 11 | - project.initialize_dup(@from_project) | |
| 10 | + project = @from_project.dup | |
| 12 | 11 | project.name = @from_project.name |
| 13 | 12 | project.path = @from_project.path |
| 14 | 13 | project.namespace = current_user.namespace | ... | ... |