Permalink
Browse files

remove_duplicate_results! should be protected

  • Loading branch information...
1 parent 8c88385 commit eb750e2127d163be46423bcdfc08b420afa58071 Neeraj Singh committed Apr 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/join_dependency.rb
View
4 activerecord/lib/active_record/associations/join_dependency.rb
@@ -58,6 +58,8 @@ def instantiate(rows)
records
end
+ protected
+
def remove_duplicate_results!(base, records, associations)
case associations
when Symbol, String
@@ -88,8 +90,6 @@ def remove_duplicate_results!(base, records, associations)
end
end
- protected
-
def cache_joined_association(association)
associations = []
parent = association.parent

0 comments on commit eb750e2

Please sign in to comment.