From 4f5e8af9931726631d5677b492921bffc6f0c7d1 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Sun, 7 Apr 2013 19:59:07 +0530 Subject: each to each_value; remove unused vars --- .../lib/active_record/associations/preloader/has_many_through.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations') 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 -- cgit v1.2.3