Skip to content

grasp/will_paginate_mongoid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Will Paginate Mongoid

A simple gem that allows you use pagination using Mongoid

Why use this gem?

Because will_paginate does not support mongoid skip and limit methods. They just supports paginate method in Array class. So what it means? Will_Paginate, find all objects and after that cut the needed objects. It can cause performance problems when you have a lot of objects.

How I install it?

In your Gemfile use gem "will_paginate_mongoid" and run bundle install

or

Just run gem install will_paginate_mongoid

How it works?

It just create a paginate method compatible with will_paginate interface and add two additional criterias: skip and limit

Just that?

Yes. Now you can use paginate method like in will_paginate documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%