class ActionController::MiddlewareStack::Middleware
:nodoc:
: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)
: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
def valid?(action)
def valid?(action) @strategy.call @actions, action end