mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Double assignment of attributes on a collection association occurs fixed for the issue issue #1467
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user