-
Notifications
You must be signed in to change notification settings - Fork 864
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
3.0.7 and activeadmin 1.0.0pre broken #400
Comments
Thanks for reporting. @edariedl Seems like Relation defines a Caused by: #372 |
Sorry, my fault. We probably should rename it in |
@edariedl Could you submit another PR, please? You have a much better idea of what's going on in that method than I do. |
Apparently there is a naming conflict between Rails and will_paginate described here: mislav/will_paginate#400 I've patched will_paginate and will push to Heroku to see if this resolves my issue.
My issue seems to be independent of issue mislav#400 of will_paginate. Testing one more patch that changes the name and uses some slightly different code from nazgum's fork.
This is biting me too without active_admin. I'm not sure what is specific about the query that is triggering it. using 3.0.6 as a workaround for now. |
3.0.7 introduced a ArgumentError: wrong number of arguments (0 for 1) see mislav/will_paginate#400
Three years later, any resolution on this? |
@voltechs I don't think so! We need someone who: 1) explains exactly what's going on, 2) makes a fix, 3) provides a test that fails without the fix. |
@mislav — For (1) an explanation of what's going on, ActiveRecord defines a method which takes no arguments, but WillPaginate also defines a method with that name and one argument that is mixed into ActiveRecord. The name collision causes things to break. (2) This commit by @edariedl renames WillPaginate's version of the method to avoid the collision (3) It will take me an hour or two to get everything setup to make a test that shows this problem. Could we just pull this commit in? In the same time, I could just switch to Kaminari. |
Hi!
Have a problem with 3.0.7 version (3.0.6 is good).
In case if I have more than one record in activeadmin tables my rails app crashed when load activeadmin controller. Logs:
The text was updated successfully, but these errors were encountered: