Skip to content
Pagination scopes for mongoid
Ruby
Find file
Latest commit 8f9c65c @ajsharp Ignore pkg folder

README.md

What

Adds pagination scopes to your mongoid models.

Usage

class Person
  include Mongoid::Document
  include Mongoid::Pagination
end

Person.paginate(:page => 2, :limit => 25) # limit and offset
Person.per_page(25) # just does a limit
Something went wrong with that request. Please try again.