diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-04-07 19:59:07 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-04-07 19:59:07 +0530 |
commit | 4f5e8af9931726631d5677b492921bffc6f0c7d1 (patch) | |
tree | 5eb64a03c1b01b67c3fbdf57c77ba9962242be99 /activerecord/lib | |
parent | 136e3a46e139e6105b0f18c29f7207bac7770be6 (diff) | |
download | rails-4f5e8af9931726631d5677b492921bffc6f0c7d1.tar.gz rails-4f5e8af9931726631d5677b492921bffc6f0c7d1.tar.bz2 rails-4f5e8af9931726631d5677b492921bffc6f0c7d1.zip |
each to each_value; remove unused vars
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/preloader/has_many_through.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/preloader/has_many_through.rb b/activerecord/lib/active_record/associations/preloader/has_many_through.rb index 38bc7ce7da..0dc551f100 100644 --- a/activerecord/lib/active_record/associations/preloader/has_many_through.rb +++ b/activerecord/lib/active_record/associations/preloader/has_many_through.rb @@ -5,7 +5,7 @@ module ActiveRecord include ThroughAssociation def associated_records_by_owner - super.each do |owner, records| + super.each_value do |records| records.uniq! if reflection_scope.distinct_value end end |