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
Adding this as a TODO for myself (or anyone else who wants to contribute).
able_to?
cannot?
not_
not_able_to?
if cannot? :view, secret_message if not_permitted_to? :view, secret_message
This avoids having to write something like:
unless can? :view, secret_message # or... if !can? :view, secret_message
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Adding this as a TODO for myself (or anyone else who wants to contribute).
able_to?
method.cannot?
andnot_
(i.e.not_able_to?
) methods. For example:This avoids having to write something like:
The text was updated successfully, but these errors were encountered: