Skip to content
Browse files

use the API rather than accessing underlying data structures

  • Loading branch information...
1 parent c04a819 commit eeda42fc11a4b2840bfa9bbdc7f3028638563ac7 @tenderlove tenderlove committed Oct 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/join_dependency.rb
View
2 activerecord/lib/active_record/associations/join_dependency.rb
@@ -135,7 +135,7 @@ def join_base
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 = []

0 comments on commit eeda42f

Please sign in to comment.
Something went wrong with that request. Please try again.