Module: MarkMapper::Plugins::Pagination::ClassMethods

Defined in:
lib/mark_mapper/plugins/pagination.rb

Instance Method Summary collapse

Instance Method Details

#paginate(opts = {}) ⇒ Object


10
11
12
# File 'lib/mark_mapper/plugins/pagination.rb', line 10

def paginate(opts={})
  query.paginate({:per_page => per_page}.merge(opts))
end

#per_pageObject


8
# File 'lib/mark_mapper/plugins/pagination.rb', line 8

def per_page; 25 end