apotonick / kaminari-cells

Kaminari pagination in Cells.
MIT License
23 stars 15 forks source link

Kaminari::Cells

Use Kaminari in Cells.

Installation

Add this line to your application's Gemfile:

gem 'kaminari-cells'

Usage

To use the wonderful Kaminari gem in your Cells view models, just do

  class CommentsCell < Cell::ViewModel
    include Kaminari::Cells

You can now use #paginate in your cell and it will work.