Skip to content
Browse files

Double assignment of attributes on a collection association occurs fi…

…xed for the issue issue #1467
  • Loading branch information...
1 parent f064664 commit 7ef2f6fc04d695fe34abb8911ca1073c282b4c20 @rdoddaka rdoddaka committed Jun 3, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 activerecord/lib/active_record/associations/collection_association.rb
View
1 activerecord/lib/active_record/associations/collection_association.rb
@@ -436,7 +436,6 @@ def create_scope
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

0 comments on commit 7ef2f6f

Please sign in to comment.
Something went wrong with that request. Please try again.