-
Notifications
You must be signed in to change notification settings - Fork 20
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
warning: method already defined in rails 6.1.4 #12
Comments
Could you by chance provide a stack trace so I can more easily determine what method it's conflicting with? Thanks! |
Unfortunately there is no stack trace, just those warnings to stdout. |
To give you a more concrete example:
|
This post explains the issue: However, the suggested solution does not work for me since some of my state_actions use
|
Thanks for providing more input on the issue, just checking in to see if you've found a work-around since we last spoke? Otherwise I'll see what I can dig up from the linked issue and rails 6.1 (that we now support, yay with #13). |
Hi @macfanatic, I haven't found a work-around. These are just warnings printed to stderr and everything still works as intended so we are ignoring them for now... However I am afraid that future versions of rails may break. |
Could you clone the repo and see if starting the rails app produces those warnings in the dummy app for you? I do not see those logged when starting a console nor when running the server. I'm also curious if they are still present on the most recent pre-release of the library. |
Hi there,
I'm using active_admin-state_machine with rails v6.1.4 and ActiveAdmin v2.9.0
When rails is launched, I get warnings for each state_action block defined in my active admin classes:
Warning: method <state action> already defined in <ActiveAdmin Controller>
The text was updated successfully, but these errors were encountered: