aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-08 10:51:45 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-08 10:51:45 -0700
commitbf8628df0a8422d54350b3e66f5f56b43576f350 (patch)
tree9e3469e0450cb4eccf8f08a2232689c0737e38fd
parent40898c8c19fa04442fc5f8fb5daf3a8bdb9a1e03 (diff)
downloadrails-bf8628df0a8422d54350b3e66f5f56b43576f350.tar.gz
rails-bf8628df0a8422d54350b3e66f5f56b43576f350.tar.bz2
rails-bf8628df0a8422d54350b3e66f5f56b43576f350.zip
@associations can never have an array, so remove the dead code
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb4
1 files changed, 0 insertions, 4 deletions
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]