Skip to content
This repository
Browse code

Remove unnecessary '|| {}'

  • Loading branch information...
commit 93a85ce333db35b96a70ad02418db8866d89fc08 1 parent a87894a
Jon Leighton jonleighton authored
2  activerecord/lib/active_record/associations/collection_association.rb
@@ -424,7 +424,7 @@ def insert_record(record, validate = true)
424 424 def build_record(attributes, options)
425 425 record = reflection.build_association
426 426 record.assign_attributes(scoped.scope_for_create, :without_protection => true)
427   - record.assign_attributes(attributes || {}, options)
  427 + record.assign_attributes(attributes, options)
428 428 record
429 429 end
430 430

0 comments on commit 93a85ce

Please sign in to comment.
Something went wrong with that request. Please try again.