module RbPager::ActiveRecord::ActiveRecordRelationMethods

Public Instance Methods

left_over?() click to toggle source
# File lib/rb_pager/orm/active_record_relation_methods.rb, line 4
def left_over?
  @left_over ||= begin
    # Cache #size otherwise multiple calls to the database will occur.
    records.size.positive? && records.size < total_size
  end
end