method

find_nth_with_limit_and_offset

rails latest stable - Class: ActiveRecord::FinderMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

find_nth_with_limit_and_offset(index, limit, offset:)
private

No documentation available.

# File activerecord/lib/active_record/relation/finder_methods.rb, line 585
    def find_nth_with_limit_and_offset(index, limit, offset)) # :nodoc:
      if loaded?
        @records[index, limit]
      else
        index += offset
        find_nth_with_limit(index, limit)
      end
    end