Module: Core::Endpoint::BasicHandler::Actions::Guards

Defined in:
app/api/core/endpoint/basic_handler/actions/guards.rb

Overview

rubocop:todo Style/Documentation

Defined Under Namespace

Classes: Guard, GuardChain, GuardProxy

Instance Method Summary collapse

Instance Method Details

#action_guard(name, method_name = nil, &block) ⇒ Object


64
65
66
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 64

def action_guard(name, method_name = nil, &block)
  guard_for(name).push(Guard.new(method_name, &block))
end