diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2014-04-13 10:28:56 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2014-04-13 10:28:56 -0300 |
commit | 8b3ff37cb77e1f3976e6108b67414d0666f36574 (patch) | |
tree | 961ac393d67fdd7bacc675ff7ed9c41542416d67 /guides/source/rails_on_rack.md | |
parent | 090db0ff7d2611846aef0b38f741dda6204849ce (diff) | |
parent | 2ddbe87e7acc324ce7e0a4784c4d10b79cc49a40 (diff) | |
download | rails-8b3ff37cb77e1f3976e6108b67414d0666f36574.tar.gz rails-8b3ff37cb77e1f3976e6108b67414d0666f36574.tar.bz2 rails-8b3ff37cb77e1f3976e6108b67414d0666f36574.zip |
Merge pull request #14718 from mcmorgan/update-documentation-to-match-generated-config
Update documentation to use Rails.application instead
Diffstat (limited to 'guides/source/rails_on_rack.md')
-rw-r--r-- | guides/source/rails_on_rack.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md index 9c92cf3aea..b1b4c8fa4e 100644 --- a/guides/source/rails_on_rack.md +++ b/guides/source/rails_on_rack.md @@ -27,10 +27,9 @@ Rails on Rack ### Rails Application's Rack Object -`ApplicationName::Application` is the primary Rack application object of a Rails +`Rails.application` is the primary Rack application object of a Rails application. Any Rack compliant web server should be using -`ApplicationName::Application` object to serve a Rails -application. `Rails.application` refers to the same application object. +`Rails.application` object to serve a Rails application. ### `rails server` @@ -141,7 +140,7 @@ use ActionDispatch::ParamsParser use Rack::Head use Rack::ConditionalGet use Rack::ETag -run MyApp::Application.routes +run Rails.application.routes ``` The default middlewares shown here (and some others) are each summarized in the [Internal Middlewares](#internal-middleware-stack) section, below. @@ -201,7 +200,7 @@ use ActionDispatch::Static use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000001c304c8> use Rack::Runtime ... -run Blog::Application.routes +run Rails.application.routes ``` If you want to remove session related middleware, do the following: |