method
middleware
v8.0.0 -
Show latest stable
- Class:
ActionController::Metal
middleware()public
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.