Skip to content

About

Pagination scopes for mongoid

Resources

Stars

21 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

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

About

Pagination scopes for mongoid

Resources

Stars

21 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages