class Granite::Action::Policies::RequiredPerformerStrategy

A Granite policies strategy which requires a performer to be present

and at least one defined policy to be evaluated to true

Public Class Methods

allowed?(action) click to toggle source
# File lib/granite/action/policies/required_performer_strategy.rb, line 8
def self.allowed?(action)
  action.performer.present? && super
end