Permalink
Browse files

Properly named variable inside block

Closes #9824.
  • Loading branch information...
1 parent c81dc8e commit 9d8ac710ef55ac2fc28ffa28e95b2b24a1004ac7 @anupamc anupamc committed with carlosantoniodasilva Mar 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/collection_association.rb
@@ -507,8 +507,8 @@ def concat_records(records)
records.flatten.each do |record|
raise_on_type_mismatch(record)
- add_to_target(record) do |r|
- result &&= insert_record(record) unless owner.new_record?
+ add_to_target(record) do |rec|
+ result &&= insert_record(rec) unless owner.new_record?
end
end

0 comments on commit 9d8ac71

Please sign in to comment.