We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ruby Version: 2.6.2
Framework Version (Rails, whatever): rails 6.0.3.1
Action Policy Version: action_policy (0.4.3)
class ReportPolicy < ApplicationPolicy def manage? true end end class Report::Default < ApplicationController def index authorize! :report end end
I expect that ReportPolicy will be found according to https://actionpolicy.evilmartians.io/#/lookup_chain and https://actionpolicy.evilmartians.io/#/namespaces
I got error Couldn't find policy class for :report (Symbol)
Couldn't find policy class for :report (Symbol)
If I rename policy to Report::ReportPolicy then it found
The text was updated successfully, but these errors were encountered:
f66ae50
Thanks for reporting! Fixed and released in 0.4.4.
Sorry, something went wrong.
No branches or pull requests
Tell us about your environment
Ruby Version: 2.6.2
Framework Version (Rails, whatever): rails 6.0.3.1
Action Policy Version: action_policy (0.4.3)
What did you do?
What did you expect to happen?
I expect that ReportPolicy will be found according to
https://actionpolicy.evilmartians.io/#/lookup_chain and https://actionpolicy.evilmartians.io/#/namespaces
What actually happened?
I got error
Couldn't find policy class for :report (Symbol)
If I rename policy to Report::ReportPolicy then it found
The text was updated successfully, but these errors were encountered: