aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/lib/active_record/associations/collection_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb
index 59e6e00ad1..ccd6b82217 100644
--- a/activerecord/lib/active_record/associations/collection_association.rb
+++ b/activerecord/lib/active_record/associations/collection_association.rb
@@ -424,7 +424,7 @@ module ActiveRecord
def build_record(attributes, options)
record = reflection.build_association
record.assign_attributes(scoped.scope_for_create, :without_protection => true)
- record.assign_attributes(attributes || {}, options)
+ record.assign_attributes(attributes, options)
record
end