From 16512704fcb7b32ae34256fd2cfee4bec52dfc10 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Thu, 5 Apr 2012 22:28:47 +0530 Subject: lets not show too much output and shadow the intention [ci skip] --- guides/source/rails_on_rack.textile | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/guides/source/rails_on_rack.textile b/guides/source/rails_on_rack.textile index 34dfd3572a..ff862273fd 100644 --- a/guides/source/rails_on_rack.textile +++ b/guides/source/rails_on_rack.textile @@ -160,15 +160,10 @@ Append following lines to your application configuration: # config/application.rb - config.middleware.delete "Rack::Lock" - config.middleware.delete "ActionDispatch::Cookies" - config.middleware.delete "ActionDispatch::Flash" - config.middleware.delete "ActionDispatch::RemoteIp" - config.middleware.delete "ActionDispatch::Reloader" - config.middleware.delete "ActionDispatch::Callbacks" +config.middleware.delete "Rack::Lock" -And now inspecting the middleware stack: +And now if you inspect the middleware stack, you'll find that +Rack::Lock+ will not be part of it. $ rake middleware @@ -176,19 +171,7 @@ $ rake middleware use ActionDispatch::Static use # use Rack::Runtime -use Rack::MethodOverride -use ActionDispatch::RequestId -use Rails::Rack::Logger -use ActionDispatch::ShowExceptions -use ActionDispatch::DebugExceptions -use ActiveRecord::ConnectionAdapters::ConnectionManagement -use ActiveRecord::QueryCache -use ActionDispatch::Session::CookieStore -use ActionDispatch::ParamsParser -use ActionDispatch::Head -use Rack::ConditionalGet -use Rack::ETag -use ActionDispatch::BestStandardsSupport +... run Myapp::Application.routes -- cgit v1.2.3