module WillPaginate::SequelMethods
Sequel already supports pagination; we only need to make the resulting dataset look a bit more like WillPaginate::Collection
Public Instance Methods
Source
# File lib/will_paginate/sequel.rb, line 33 def offset (current_page - 1) * per_page end
Current offset of the paginated collection
Source
# File lib/will_paginate/sequel.rb, line 28 def out_of_bounds? current_page > total_pages end
Source
# File lib/will_paginate/sequel.rb, line 19 def size current_page_record_count end
Also aliased as: length
Source
# File lib/will_paginate/sequel.rb, line 24 def total_entries pagination_record_count end