Sha256: 20299578f7fa5f0613b90cf80e52d5e72870256b20af159b2519650f810009e1

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

## What

Adds pagination scopes to your mongoid models.

## Usage

```ruby
class Person
  include Mongoid::Document
  include Mongoid::Pagination

  default_page_size 20
end

Person.paginate(:page => 2, :limit => 25) # limit and page
Person.paginate(:offset => 20, :limit => 25) # limit and offset
Person.per_page(25) # just does a limit
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
banjo-mongoid-pagination-1.0.0 README.md