diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 15:39:02 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 15:39:02 -0700 |
commit | eeda42fc11a4b2840bfa9bbdc7f3028638563ac7 (patch) | |
tree | 1905c19d844a07c72c84eba67523b92499381cef /activerecord/lib | |
parent | c04a8192fdc78b5c24e33e16dab785e2b097009d (diff) | |
download | rails-eeda42fc11a4b2840bfa9bbdc7f3028638563ac7.tar.gz rails-eeda42fc11a4b2840bfa9bbdc7f3028638563ac7.tar.bz2 rails-eeda42fc11a4b2840bfa9bbdc7f3028638563ac7.zip |
use the API rather than accessing underlying data structures
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index 227e967c95..8ddfe5742e 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -135,7 +135,7 @@ module ActiveRecord def remove_duplicate_results!(base, records, associations) associations.each_key do |name| - reflection = base.reflections[name] + reflection = base.reflect_on_association(name) remove_uniq_by_reflection(reflection, records) parent_records = [] |