Class: ActionController::MiddlewareStack::Middleware
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
ActionDispatch::MiddlewareStack::Middleware
|
Defined in: | actionpack/lib/action_controller/metal.rb |
Class Method Summary
::ActionDispatch::MiddlewareStack::Middleware
- Inherited
Instance Attribute Summary
::ActionDispatch::MiddlewareStack::Middleware
- Inherited
Instance Method Summary
::ActionDispatch::MiddlewareStack::Middleware
- Inherited
Constructor Details
.new(klass, args, actions, strategy, block) ⇒ Middleware
# File 'actionpack/lib/action_controller/metal.rb', line 20
def initialize(klass, args, actions, strategy, block) @actions = actions @strategy = strategy super(klass, args, block) end
Instance Method Details
#valid?(action) ⇒ Boolean
# File 'actionpack/lib/action_controller/metal.rb', line 26
def valid?(action) @strategy.call @actions, action end