Permalink
Browse files

Properly named variable inside block

  • Loading branch information...
anupamc committed Mar 20, 2013
1 parent e61cdf0 commit 1cf1ea7928839a5d92dd949a6b9274b6a7191291
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 1cf1ea7

Please sign in to comment.