Module: Pagify::Pagifier

Included in:
Array, DataMapper::Model
Defined in:
lib/pagify/pagifier/abstract.rb

Instance Method Summary collapse

Instance Method Details

#pagify(opts = {}) ⇒ Object



4
5
6
7
8
# File 'lib/pagify/pagifier/abstract.rb', line 4

def pagify opts = {}
  opts = {:per_page => 20, :null_page => false, :page => 1}.merge(opts)
  page = opts.delete(:page)
  pagify_pager_create(self, opts).page(page)
end