Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

will_paginate_mongoid

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

will_paginate_mongoid

  • 2.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Will Paginate Mongoid

A simple gem that allows you to use pagination with Mongoid

Why use this gem?

Because will_paginate does not support the mongoid skip and limit methods. They just support the paginate method in the Array class. What does this mean? Will_Paginate will find all the objects and then cut out the unneeded ones. This can cause performance problems when you have a lot of objects.

How I install it?

Add gem "will_paginate_mongoid" to your Gemfile and run bundle install

or

Just run gem install will_paginate_mongoid

How it works?

It just creates a paginate method compatible with will_paginate interface and adds two additional criteria: skip and limit

That's it?

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

FAQs

Package last updated on 12 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc