Permalink
Browse files

Remove unnecessary '|| {}'

  • Loading branch information...
1 parent a87894a commit 93a85ce333db35b96a70ad02418db8866d89fc08 @jonleighton jonleighton committed May 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/collection_association.rb
View
2 activerecord/lib/active_record/associations/collection_association.rb
@@ -424,7 +424,7 @@ def insert_record(record, validate = true)
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

0 comments on commit 93a85ce

Please sign in to comment.