Namespace
Methods
A
B
I
N
S
U
Class Public methods
new(*args, &block)
# File actionpack/lib/action_controller/middleware_stack.rb, line 83
def initialize(*args, &block)
  super(*args)
  block.call(self) if block_given?
end
Instance Public methods
active()
# File actionpack/lib/action_controller/middleware_stack.rb, line 111
def active
  find_all { |middleware| middleware.active? }
end
build(app)
# File actionpack/lib/action_controller/middleware_stack.rb, line 115
def build(app)
  active.reverse.inject(app) { |a, e| e.build(a) }
end
insert(index, *args, &block)
Also aliased as: insert_before
# File actionpack/lib/action_controller/middleware_stack.rb, line 88
def insert(index, *args, &block)
  index = self.index(index) unless index.is_a?(Integer)
  middleware = Middleware.new(*args, &block)
  super(index, middleware)
end
insert_after(index, *args, &block)
# File actionpack/lib/action_controller/middleware_stack.rb, line 96
def insert_after(index, *args, &block)
  index = self.index(index) unless index.is_a?(Integer)
  insert(index + 1, *args, &block)
end
insert_before(index, *args, &block)
swap(target, *args, &block)
# File actionpack/lib/action_controller/middleware_stack.rb, line 101
def swap(target, *args, &block)
  insert_before(target, *args, &block)
  delete(target)
end
use(*args, &block)
# File actionpack/lib/action_controller/middleware_stack.rb, line 106
def use(*args, &block)
  middleware = Middleware.new(*args, &block)
  push(middleware)
end