2011-11-05 07:42:04 +00:00
|
|
|
class Kaminari::PaginatableArray
|
|
|
|
def to_liquid(options = {})
|
|
|
|
{
|
2011-11-05 08:10:26 +00:00
|
|
|
:collection => to_a,
|
2011-11-05 07:42:04 +00:00
|
|
|
: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
|
|
|
|
end
|