Class: Pagoid::Kaminari
- Inherits:
-
PagingAdapter
- Object
- SimpleDelegator
- PagingAdapter
- Pagoid::Kaminari
- Defined in:
- lib/pagoid/kaminari.rb
Instance Attribute Summary
Attributes inherited from PagingAdapter
Instance Method Summary collapse
Methods inherited from PagingAdapter
Constructor Details
This class inherits a constructor from Pagoid::PagingAdapter
Instance Method Details
#coerce(coerceable = paginatable) ⇒ Object
4 5 6 |
# File 'lib/pagoid/kaminari.rb', line 4 def coerce(coerceable = paginatable) coerce?(coerceable) ? ::Kaminari.paginate_array(Array(coerceable)) : coerceable end |
#page(*args) ⇒ Object
8 9 10 |
# File 'lib/pagoid/kaminari.rb', line 8 def page(*args) __getobj__.page(*args) end |