class ActionController::MiddlewareStack::Middleware
def initialize(klass, args, actions, strategy, block)
:nodoc:
end
use AuthenticationMiddleware, except: [:index, :show]
class PostsController < ApplicationController
allowing the following syntax in controllers:
Extend ActionDispatch middleware stack to make it aware of options
= Action Controller \MiddlewareStack
def initialize(klass, args, actions, strategy, block) @actions = actions @strategy = strategy super(klass, args, block) end