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) ⇒ Object
64
65
66
|
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 64
def action_guard(name, method_name = nil, &)
guard_for(name).push(Guard.new(method_name, &))
end
|