Double assignment of attributes on a collection association occurs fixed for the issue issue #1467

This commit is contained in:
Raghunadh
2011-06-03 18:52:43 +05:30
parent f064664de7
commit 7ef2f6fc04

View File

@@ -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