Class: Granite::Action::Policies::AlwaysAllowStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/granite/action/policies/always_allow_strategy.rb

Overview

A Granite policies strategy which allows an action to be performed unconditionally. No defined policies are evaluated.

Class Method Summary collapse

Class Method Details

.allowed?(_action) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/granite/action/policies/always_allow_strategy.rb', line 7

def self.allowed?(_action)
  true
end