Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Double assignment of attributes on a collection association occurs fi…

…xed for the issue issue #1467
  • Loading branch information...
commit 7ef2f6fc04d695fe34abb8911ca1073c282b4c20 1 parent f064664
@rdoddaka rdoddaka authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.