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 in the guides.

Show source
Register or log in to add new notes.