Last active
January 26, 2026 09:08
-
-
Save tijmenb/5052074 to your computer and use it in GitHub Desktop.
Fix Draper / Kaminari conflict `undefined method `current_page' for #<Draper::CollectionDecorator:>`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Draper | |
| class CollectionDecorator | |
| delegate :current_page, :total_pages, :limit_value | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. Works fantastically as an initializer.