Permalink
Browse files

Merge pull request #12516 from vipulnsward/drop_var

Drop unused iterator var
  • Loading branch information...
2 parents 0df9149 + 73ec210 commit b23e9e7eed47fa71b0cf974577fa2db8dde83336 @rafaelfranca rafaelfranca committed Oct 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/preloader/through_association.rb
@@ -15,7 +15,7 @@ def associated_records_by_owner(preloader)
through_reflection.name,
through_scope)
- through_records = owners.map do |owner, h|
+ through_records = owners.map do |owner|
association = owner.association through_reflection.name
[owner, Array(association.reader)]

0 comments on commit b23e9e7

Please sign in to comment.