From 7ef2f6fc04d695fe34abb8911ca1073c282b4c20 Mon Sep 17 00:00:00 2001 From: Raghunadh Date: Fri, 3 Jun 2011 18:52:43 +0530 Subject: Double assignment of attributes on a collection association occurs fixed for the issue issue #1467 --- activerecord/lib/active_record/associations/collection_association.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index 02cc455a4e..7e1a41e84d 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -436,7 +436,6 @@ module ActiveRecord def build_record(attributes, options) record = reflection.build_association(attributes, options) record.assign_attributes(create_scope.except(*record.changed), :without_protection => true) - record.assign_attributes(attributes, options) record end -- cgit v1.2.3