Class: Kaminari::PaginatableArray
- Inherits:
-
Array
- Object
- Array
- Kaminari::PaginatableArray
- Defined in:
- lib/locomotive/kaminari.rb
Instance Method Summary collapse
Instance Method Details
#to_liquid(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/locomotive/kaminari.rb', line 5 def to_liquid( = {}) { :collection => to_a, :current_page => current_page, :previous_page => first_page? ? nil : current_page - 1, :next_page => last_page? ? nil : current_page + 1, :total_entries => total_count, :total_pages => num_pages, :per_page => limit_value } end |