Class: ActionController::MiddlewareStack::Middleware
- Inherits:
-
ActionDispatch::MiddlewareStack::Middleware
- Object
- ActionDispatch::MiddlewareStack::Middleware
- ActionController::MiddlewareStack::Middleware
- Defined in:
- actionpack/lib/action_controller/metal.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from ActionDispatch::MiddlewareStack::Middleware
Instance Method Summary collapse
-
#initialize(klass, args, actions, strategy, block) ⇒ Middleware
constructor
:nodoc:.
- #valid?(action) ⇒ Boolean
Methods inherited from ActionDispatch::MiddlewareStack::Middleware
#==, #build, #build_instrumented, #inspect, #name
Constructor Details
#initialize(klass, args, actions, strategy, block) ⇒ Middleware
:nodoc:
18 19 20 21 22 |
# File 'actionpack/lib/action_controller/metal.rb', line 18 def initialize(klass, args, actions, strategy, block) @actions = actions @strategy = strategy super(klass, args, block) end |
Instance Method Details
#valid?(action) ⇒ Boolean
24 25 26 |
# File 'actionpack/lib/action_controller/metal.rb', line 24 def valid?(action) @strategy.call @actions, action end |