diff options
Diffstat (limited to 'activerecord/lib/active_record/associations/collection_proxy.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 35a98d7090..9f91f2b536 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -1126,20 +1126,18 @@ module ActiveRecord self end - protected + private - def find_nth_with_limit(index, limit) + def find_nth_with_limit(index, limit) # :doc: load_target if find_from_target? super end - def find_nth_from_last(index) + def find_nth_from_last(index) # :doc: load_target if find_from_target? super end - private - def null_scope? @association.null_scope? end |