Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `page' for []:Kaminari::PaginatableArray #2711

Closed
carsonreinke opened this issue Sep 15, 2016 · 0 comments · Fixed by #2712
Closed

undefined method `page' for []:Kaminari::PaginatableArray #2711

carsonreinke opened this issue Sep 15, 2016 · 0 comments · Fixed by #2712

Comments

@carsonreinke
Copy link
Contributor

The paper_trail auditing adapter produces this error. Here is the stack:

NoMethodError (undefined method `page' for []:Kaminari::PaginatableArray):
  rails_admin (0.8.1) lib/rails_admin/extensions/paper_trail/auditing_adapter.rb:101:in `listing_for_model_or_object'
  rails_admin (0.8.1) lib/rails_admin/extensions/paper_trail/auditing_adapter.rb:74:in `listing_for_model'
  rails_admin (0.8.1) lib/rails_admin/config/actions/history_index.rb:22:in `block (2 levels) in <class:HistoryIndex>'
  rails_admin (0.8.1) app/controllers/rails_admin/main_controller.rb:22:in `instance_eval'
  rails_admin (0.8.1) app/controllers/rails_admin/main_controller.rb:22:in `history_index'

It looks like this commit 0164004 introduced a change expecting Kaminari::PaginatableArray to have a #page method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant