-
Notifications
You must be signed in to change notification settings - Fork 13
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 local variable or method `default_per_page' for Class Did you mean? default_scope #9
Comments
Interesting. It's the most basic feature of Kaminari and I have no idea how this bug slipped in. Would you mind creating an example app that replicates your issue? Thanks for reporting! |
Hey @yuki24, I created a new rails project and I have to dig into my Project where I updated the version of kaminari from If I find something when I will show it. Thank you for your quick response. |
Do I need a specific version for mongoid here? Iam using mongoid version |
I am having the same error on Mongoid 4.0.2. I am also upgrading from 0.16.3 to 1.1.1. Our investigation has shown that We are on Rails 4.2.10. |
Here's a sample app that exhibits the behavior. It is a stock Rails 4.2.x that has added Mongoid and Kaminari-Mongoid to the gem file. There is one model,
The ancestor list doesn't change. Is this some kind of load order issue? |
I'm not sure yet but this commit may be it: kaminari/kaminari@4536cc2 |
confirmed kaminari/kaminari@4536cc2 broke the integration with mongoid 4.0. |
This reverts commit 4536cc2. This has introduced a loading issue in kaminari-mongoid: kaminari/kaminari-mongoid#9
This issue has been fixed by kaminari/kaminari@d38c684. We'll cut a new release in a few weeks. Thanks! |
Hi @yuki24 did a new release get cut? |
@rdunlop No not yet. |
+1 Just ran into this bug. Any chance you can cut a new release? |
+1 ran into this bug. mongoid (4.0.2) |
This reverts commit 4536cc2800a40fcd91c0f4678133e4e9c01904ff. This has introduced a loading issue in kaminari-mongoid: kaminari/kaminari-mongoid#9
After I updated kaminari I received an error for
Mongoid
. When I use thekaminari-mongoid
gem I have the following issue.undefined local variable or method 'default_per_page' for Profile:Class Did you mean? default_scope
I updated the version from
0.16.3
to1.1.1
The text was updated successfully, but these errors were encountered: