Method: ActionController::Metal.middleware
- Defined in:
- actionpack/lib/action_controller/metal.rb
.middleware ⇒ Object
The middleware stack used by this controller.
By default uses a variation of ActionDispatch::MiddlewareStack which allows for the following syntax:
class PostsController < ApplicationController
use AuthenticationMiddleware, except: [:index, :show]
end
Read more about [Rails middleware stack] (guides.rubyonrails.org/rails_on_rack.html#action-dispatcher-middleware-stack) in the guides.
310 311 312 |
# File 'actionpack/lib/action_controller/metal.rb', line 310 def self.middleware middleware_stack end |