Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix visibility of the relation construction methods

  • Loading branch information...
commit a4c0281dada222d350dc337c3b283e4254b07f1b 1 parent 8004c91
@tenderlove tenderlove authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 activerecord/lib/active_record/relation/finder_methods.rb
View
12 activerecord/lib/active_record/relation/finder_methods.rb
@@ -238,7 +238,7 @@ def raise_record_not_found_exception!(ids, result_size, expected_size) #:nodoc:
raise RecordNotFound, error
end
- protected
+ private
def find_with_associations
join_dependency = construct_join_dependency
@@ -290,6 +290,12 @@ def limited_ids_for(relation)
id_rows.map {|row| row[primary_key]}
end
+ def using_limitable_reflections?(reflections)
+ reflections.none? { |r| r.collection? }
+ end
+
+ protected
+
def find_with_ids(*ids)
expects_array = ids.first.kind_of?(Array)
return ids.first if expects_array && ids.first.empty?
@@ -379,9 +385,5 @@ def find_last
end
end
end
-
- def using_limitable_reflections?(reflections)
- reflections.none? { |r| r.collection? }
- end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.