Module: DmPagination::Paginatable
- Defined in:
- lib/dm-pagination/paginatable.rb
Instance Method Summary collapse
Instance Method Details
#paginate(options = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/dm-pagination/paginatable.rb', line 5 def paginate( = {}) paginator_type = .delete(:paginator) || Agnostic::plugin(:dm_pagination).paginator paginator = Paginator.const_get(paginator_type.to_s.camel_case) paginator.new(all, ) end |