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

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

Defined Under Namespace

Classes: Guard, GuardChain, GuardProxy

Instance Method Summary collapse

Instance Method Details

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


59
60
61
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 59

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