Class: Pagoid::Kaminari

Inherits:
PagingAdapter show all
Defined in:
lib/pagoid/kaminari.rb

Instance Attribute Summary

Attributes inherited from PagingAdapter

#attributes, #paginatable

Instance Method Summary collapse

Methods inherited from PagingAdapter

#chain, #initialize

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