Native will_paginate extension for mongoid
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.rubocop.yml
Gemfile
Gemfile.lock
README.md
Rakefile
mongoid_will_paginate.gemspec

README.md

Overview

mongoid_will_pagnate is a gem for native support of will_paginate for mongoid. It allows you to do lazy load of your collections with pagination using native calls to Mongoid::Collection#skip and Mongoid::Collection#limit.

How to use

Just add this gem to your Gemfile:

gem 'mongoid_will_paginate'

and you can use will_paginate without fetching all collection objects to array (like it does internally) while paginating.