Module | WillPaginate::CollectionMethods |
In: |
lib/will_paginate/collection.rb
|
Any will_paginate-compatible collection should have these methods:
current_page, per_page, offset, total_entries, total_pages
It can also define some of these optional methods:
out_of_bounds?, previous_page, next_page
This module provides few of these methods.