use ActionDispatch::MiddlewareStack instead of ActionController::MiddlewareStack

This commit is contained in:
Rafael Magana 2012-05-22 22:09:43 -05:00
parent 56ad6ca3ff
commit 7cabb57f6b

@ -92,11 +92,11 @@ To find out more about different +rackup+ options:
$ rackup --help
</shell>
h3. Action Controller Middleware Stack
h3. Action Dispatcher Middleware Stack
Many of Action Controller's internal components are implemented as Rack middlewares. +ActionController::Dispatcher+ uses +ActionController::MiddlewareStack+ to combine various internal and external middlewares to form a complete Rails Rack application.
Many of Action Dispatchers's internal components are implemented as Rack middlewares. +Rails::Application+ uses +ActionDispatch::MiddlewareStack+ to combine various internal and external middlewares to form a complete Rails Rack application.
NOTE: +ActionController::MiddlewareStack+ is Rails' equivalent of +Rack::Builder+, but built for better flexibility and more features to meet Rails' requirements.
NOTE: +ActionDispatch::MiddlewareStack+ is Rails' equivalent of +Rack::Builder+, but built for better flexibility and more features to meet Rails' requirements.
h4. Inspecting Middleware Stack