-
Notifications
You must be signed in to change notification settings - Fork 635
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
Why different names? authorize
vs policy
#400
Comments
@exalted , I hope this helps. |
@formigarafa You're correct, I believe. For the sake of coherency, I was wondering why then |
@exalted I'm not sure that Rails provides the view with the name of the current action, and even if it did, a view often displays links/buttons for performing different actions. Thus, I don't think it would work to simply use |
No you shouldn't use |
I suggest re-reading the README if you're still confused, it actually explains all of this, more or less. |
@jnicklas thanks for the lengthy explanation, however my question was about the rationale rather than the usage of Pundit. It's clear to me how Pundit works and the way is supposed to be used on controller and view contexts. Regardless, thank you for taking time and commenting. |
I guess that's it. Thanks everyone who answered. 🍻 |
Hi, I am a little curious about rationale behind the decision for different names (i.e.
authorize
andpolicy
) for (apparently) same functionality, albeit used in different contexts (controllers vs. views).Any comments please? Thank you.
Keep up the great great work! 🙏
The text was updated successfully, but these errors were encountered: