Skip to content

Instantly share code, notes, and snippets.

@tijmenb
Last active January 26, 2026 09:08
Show Gist options
  • Select an option

  • Save tijmenb/5052074 to your computer and use it in GitHub Desktop.

Select an option

Save tijmenb/5052074 to your computer and use it in GitHub Desktop.
Fix Draper / Kaminari conflict `undefined method `current_page' for #<Draper::CollectionDecorator:>`
module Draper
class CollectionDecorator
delegate :current_page, :total_pages, :limit_value
end
end
@evanwalsh
Copy link
Copy Markdown

Thanks for this. Works fantastically as an initializer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment