Module: Trailblazer::V1_1::Operation::Policy::Guard::ClassMethods

Defined in:
lib/trailblazer/1.1/operation/policy/guard.rb

Instance Method Summary collapse

Instance Method Details

#policy(callable = nil, &block) ⇒ Object



16
17
18
# File 'lib/trailblazer/1.1/operation/policy/guard.rb', line 16

def policy(callable=nil, &block)
  self.policy_config = Uber::Options::Value.new(callable || block)
end