Method: Ratify::ClassMethods#permits?
- Defined in:
- lib/ratify.rb
#permits?(object, *actions, scope: nil) ⇒ true | false
Checks if the given object is allowed to perform the requested action(s).
50 51 52 |
# File 'lib/ratify.rb', line 50 def permits?(object, *actions, scope: nil) .any? { |m| m.permits?(object, *actions, scope: scope) } end |