diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 10:51:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 10:51:45 -0700 |
commit | bf8628df0a8422d54350b3e66f5f56b43576f350 (patch) | |
tree | 9e3469e0450cb4eccf8f08a2232689c0737e38fd /activerecord | |
parent | 40898c8c19fa04442fc5f8fb5daf3a8bdb9a1e03 (diff) | |
download | rails-bf8628df0a8422d54350b3e66f5f56b43576f350.tar.gz rails-bf8628df0a8422d54350b3e66f5f56b43576f350.tar.bz2 rails-bf8628df0a8422d54350b3e66f5f56b43576f350.zip |
@associations can never have an array, so remove the dead code
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 4 |
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] |