radar/forem — Issue #166: Kaminari vs WillPaginate
Author: glebm
Created: 2012-03-05 14:10:39+00:00
State: open

Forem does `require "kaminari"`, which causes the following to happen:

Creating scope :page. Overwriting existing method Forem::Category.page.
Creating scope :page. Overwriting existing method Forem::Topic.page.
Creating scope :page. Overwriting existing method Forem::Forum.page.
Creating scope :page. Overwriting existing method Role.page.
Creating scope :page. Overwriting existing method Listing.page.
Creating scope :visible. Overwriting existing method Listing.visible.

I especially don't like how it overwrites an existing scope `visible` on my `Listing` model.

Since Forem supports both kaminari and will_paginate, could we remove the `require`?