class

ActionController::MiddlewareStack

v5.1.7 - Show latest stable - Superclass: Array

Extend ActionDispatch middleware stack to make it aware of options allowing the following syntax in controllers:

class PostsController < ApplicationController
  use AuthenticationMiddleware, except: [:index, :show]
end

Constants

EXCLUDE = ->(list, action) { !list.include? action }

INCLUDE = ->(list, action) { list.include? action }

NULL = ->(list, action) { true }

Files

  • actionpack/lib/action_controller/metal.rb

Nested classes and modules