aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-10-13 20:54:09 +0530
committerVipul A M <vipulnsward@gmail.com>2013-10-13 20:54:09 +0530
commit73ec210e4c6c25b589bb220169e78be566ad55a0 (patch)
treef6919a2d276c3d64090acaf9ea109d589d652ed6 /activerecord/lib/active_record
parent0df9149fd6b0ef4cd9003c1a9c406e2c586c9503 (diff)
downloadrails-73ec210e4c6c25b589bb220169e78be566ad55a0.tar.gz
rails-73ec210e4c6c25b589bb220169e78be566ad55a0.tar.bz2
rails-73ec210e4c6c25b589bb220169e78be566ad55a0.zip
Drop unused iterator var
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/preloader/through_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/preloader/through_association.rb b/activerecord/lib/active_record/associations/preloader/through_association.rb
index ea21836c65..3166df57eb 100644
--- a/activerecord/lib/active_record/associations/preloader/through_association.rb
+++ b/activerecord/lib/active_record/associations/preloader/through_association.rb
@@ -15,7 +15,7 @@ module ActiveRecord
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)]