diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-13 09:07:18 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-13 09:07:18 -0700 |
commit | b23e9e7eed47fa71b0cf974577fa2db8dde83336 (patch) | |
tree | f6919a2d276c3d64090acaf9ea109d589d652ed6 | |
parent | 0df9149fd6b0ef4cd9003c1a9c406e2c586c9503 (diff) | |
parent | 73ec210e4c6c25b589bb220169e78be566ad55a0 (diff) | |
download | rails-b23e9e7eed47fa71b0cf974577fa2db8dde83336.tar.gz rails-b23e9e7eed47fa71b0cf974577fa2db8dde83336.tar.bz2 rails-b23e9e7eed47fa71b0cf974577fa2db8dde83336.zip |
Merge pull request #12516 from vipulnsward/drop_var
Drop unused iterator var
-rw-r--r-- | activerecord/lib/active_record/associations/preloader/through_association.rb | 2 |
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)] |