From bf8628df0a8422d54350b3e66f5f56b43576f350 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 8 Oct 2013 10:51:45 -0700 Subject: @associations can never have an array, so remove the dead code --- activerecord/lib/active_record/associations/join_dependency.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index 7ae4d1763d..b3bc75e08b 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -93,10 +93,6 @@ module ActiveRecord when Symbol, String reflection = base.reflections[associations] remove_uniq_by_reflection(reflection, records) - when Array - associations.each do |association| - remove_duplicate_results!(base, records, association) - end when Hash associations.each_key do |name| reflection = base.reflections[name] -- cgit v1.2.3