-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Rails Admin's use of cancan(can) is incorrect and is erroring with v2 #2901
Comments
Bump. We're working around this for now by using a separate ability class for the rails_admin gem. |
I don't understand how using a separate ability class would solve this problem. This new adapter class does tho: CanCanCommunity/cancancan#413 (comment) |
I'm trying to figure out how to install this new adapter/extension for cancancan. Where do I place it in the project? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When loading the main dashboard, the cancan(can) adapter tries to
authorise(:dashboard, nil)
.Not passing in any model (the
nil
) is incorrect use of cancancan, according to a maintainer.Can we change the
authorise
to pass in:rails_admin
as the "model"? I understand this is a breaking change. Perhaps do it ifcancancan
is seen to be v2 or higher?The text was updated successfully, but these errors were encountered: