Class: Granite::Action::Policies::RequiredPerformerStrategy
- Inherits:
-
AnyStrategy
- Object
- AnyStrategy
- Granite::Action::Policies::RequiredPerformerStrategy
- Defined in:
- lib/granite/action/policies/required_performer_strategy.rb
Overview
A Granite policies strategy which requires a performer to be present
and at least one defined policy to be evaluated to true
Class Method Summary collapse
Class Method Details
.allowed?(action) ⇒ Boolean
8 9 10 |
# File 'lib/granite/action/policies/required_performer_strategy.rb', line 8 def self.allowed?(action) action.performer.present? && super end |