Adding this as a TODO for myself (or anyone else who wants to contribute).
- Add
able_to? method.
- Add
cannot? and not_ (i.e. not_able_to?) methods. For example:
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
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: