Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pagination scopes for mongoid
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
MIT-LICENSE
README.md
Rakefile
mongoid-pagination.gemspec

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.