aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-04-05 22:28:47 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-04-05 22:28:47 +0530
commit16512704fcb7b32ae34256fd2cfee4bec52dfc10 (patch)
tree9d435e179b79793fef6b6600868237b62ef020c1
parent8a82204a427d938eaa4ee3278e0134b9a0d3e612 (diff)
downloadrails-16512704fcb7b32ae34256fd2cfee4bec52dfc10.tar.gz
rails-16512704fcb7b32ae34256fd2cfee4bec52dfc10.tar.bz2
rails-16512704fcb7b32ae34256fd2cfee4bec52dfc10.zip
lets not show too much output and shadow the intention [ci skip]
-rw-r--r--guides/source/rails_on_rack.textile23
1 files 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:
<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>