Flowdock
method

build

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActionController::MiddlewareStack
build(action, app=nil, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal.rb, line 33
    def build(action, app=nil, &block)
      app  ||= block
      action = action.to_s
      raise "MiddlewareStack#build requires an app" unless app

      middlewares.reverse.inject(app) do |a, middleware|
        middleware.valid?(action) ? middleware.build(a) : a
      end
    end
Register or log in to add new notes.