diff options
author | Raghunadh <rdoddaka@crri.co.in> | 2011-06-03 18:52:43 +0530 |
---|---|---|
committer | Raghunadh <rdoddaka@crri.co.in> | 2011-06-03 18:52:43 +0530 |
commit | 7ef2f6fc04d695fe34abb8911ca1073c282b4c20 (patch) | |
tree | bfde3ccd5b569e1e2a970b29e5453880b7f217ac /activerecord | |
parent | f064664de72a34d24568eadf7340f41876df4b20 (diff) | |
download | rails-7ef2f6fc04d695fe34abb8911ca1073c282b4c20.tar.gz rails-7ef2f6fc04d695fe34abb8911ca1073c282b4c20.tar.bz2 rails-7ef2f6fc04d695fe34abb8911ca1073c282b4c20.zip |
Double assignment of attributes on a collection association occurs fixed for the issue issue #1467
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_association.rb | 1 |
1 files changed, 0 insertions, 1 deletions
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 |