Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove_duplicate_results! should be protected

  • Loading branch information...
commit eb750e2127d163be46423bcdfc08b420afa58071 1 parent 8c88385
Neeraj Singh neerajdotname authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/join_dependency.rb
4 activerecord/lib/active_record/associations/join_dependency.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.