Module: Groonga::WillPaginateAPI Deprecated
- Included in:
- Pagination
- Defined in:
- lib/racknga/will_paginate.rb
Overview
Deprecated.
since 0.9.2. Use Kaminari instead of will_paginate.
Instance Method Summary (collapse)
- - (Object) offset
- - (Boolean) out_of_bounds?
- - (Object) per_page
- - (Object) total_entries
- - (Object) total_pages
Instance Method Details
- (Object) offset
40 41 42 |
# File 'lib/racknga/will_paginate.rb', line 40 def offset (start_offset || 0) - 1 end |
- (Boolean) out_of_bounds?
36 37 38 |
# File 'lib/racknga/will_paginate.rb', line 36 def out_of_bounds? current_page > total_pages end |
- (Object) per_page
28 29 30 |
# File 'lib/racknga/will_paginate.rb', line 28 def per_page n_records_in_page end |
- (Object) total_entries
32 33 34 |
# File 'lib/racknga/will_paginate.rb', line 32 def total_entries n_records end |
- (Object) total_pages
24 25 26 |
# File 'lib/racknga/will_paginate.rb', line 24 def total_pages n_pages end |