From a18676b6693356f3cea4786e3280149ecfd3f7e6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Oct 2009 10:51:21 +0000 Subject: [PATCH] Prevent mass-assignment warnings. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2973 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 8b591a68..7b908083 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -431,7 +431,7 @@ class Project < ActiveRecord::Base project = project.is_a?(Project) ? project : Project.find(project) if project # clear unique attributes - attributes = project.attributes.dup.except('name', 'identifier', 'id', 'status') + attributes = project.attributes.dup.except('id', 'name', 'identifier', 'status', 'parent_id', 'lft', 'rgt') copy = Project.new(attributes) copy.enabled_modules = project.enabled_modules copy.trackers = project.trackers