Permalink
Browse files

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

  • Loading branch information...
1 parent 8a82204 commit 16512704fcb7b32ae34256fd2cfee4bec52dfc10 @vijaydev vijaydev committed Apr 5, 2012
Showing with 3 additions and 20 deletions.
  1. +3 −20 guides/source/rails_on_rack.textile
@@ -160,35 +160,18 @@ 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
(in /Users/lifo/Rails/blog)
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>

0 comments on commit 1651270

Please sign in to comment.