Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't double assign attributes - closes #1467.

  • Loading branch information...
commit 54883682dea9a6766b066cd290cbe151f002a240 1 parent f064664
@pixeltrix pixeltrix 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.