Skip to content

Instantly share code, notes, and snippets.

@tijmenb
Last active December 14, 2015 07:39
Show Gist options
  • Save tijmenb/5052074 to your computer and use it in GitHub Desktop.
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

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