lets not show too much output and shadow the intention [ci skip]

This commit is contained in:
Vijay Dev 2012-04-05 22:28:47 +05:30
parent 8a82204a42
commit 16512704fc
1 changed files with 3 additions and 20 deletions

View File

@ -160,15 +160,10 @@ Append following lines to your application configuration:
<ruby>
# 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"
</ruby>
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.
<shell>
$ rake middleware
@ -176,19 +171,7 @@ $ rake middleware
use ActionDispatch::Static
use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000001c304c8>
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
</shell>