Permalink
Browse files

@associations can never have an array, so remove the dead code

  • Loading branch information...
1 parent 40898c8 commit bf8628df0a8422d54350b3e66f5f56b43576f350 @tenderlove tenderlove committed Oct 8, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 activerecord/lib/active_record/associations/join_dependency.rb
@@ -93,10 +93,6 @@ def remove_duplicate_results!(base, records, associations)
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]

0 comments on commit bf8628d

Please sign in to comment.