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
- #offset ⇒ Object
- #out_of_bounds? ⇒ Boolean
- #per_page ⇒ Object
- #total_entries ⇒ Object
- #total_pages ⇒ Object
Instance Method Details
#offset ⇒ Object
40 41 42 |
# File 'lib/racknga/will_paginate.rb', line 40 def offset (start_offset || 0) - 1 end |
#out_of_bounds? ⇒ Boolean
36 37 38 |
# File 'lib/racknga/will_paginate.rb', line 36 def out_of_bounds? current_page > total_pages end |
#per_page ⇒ Object
28 29 30 |
# File 'lib/racknga/will_paginate.rb', line 28 def per_page n_records_in_page end |
#total_entries ⇒ Object
32 33 34 |
# File 'lib/racknga/will_paginate.rb', line 32 def total_entries n_records end |
#total_pages ⇒ Object
24 25 26 |
# File 'lib/racknga/will_paginate.rb', line 24 def total_pages n_pages end |