123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(klass, args, actions, strategy, block) ⇒ Middleware

[ GitHub ]

  
# 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

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal.rb', line 26

def valid?(action)
  @strategy.call @actions, action
end