Method: CanCan::Ability#cannot?
- Defined in:
- lib/cancan/ability.rb
#cannot?(*args) ⇒ Boolean
Convenience method which works the same as “can?” but returns the opposite value.
cannot? :destroy, @project
87 88 89 |
# File 'lib/cancan/ability.rb', line 87 def cannot?(*args) !can?(*args) end |