diff options
author | Marcel Morgan <marcel.morgan@codedry.com> | 2014-04-12 08:31:00 -0500 |
---|---|---|
committer | Marcel Morgan <marcel.morgan@codedry.com> | 2014-04-13 05:52:04 -0500 |
commit | 2ddbe87e7acc324ce7e0a4784c4d10b79cc49a40 (patch) | |
tree | 3efe7e0055908c20be8cea80277b65397bfc727e /guides/source/rails_on_rack.md | |
parent | 47d9321a1ee88368cc24de7cad5f42a28066d1a0 (diff) | |
download | rails-2ddbe87e7acc324ce7e0a4784c4d10b79cc49a40.tar.gz rails-2ddbe87e7acc324ce7e0a4784c4d10b79cc49a40.tar.bz2 rails-2ddbe87e7acc324ce7e0a4784c4d10b79cc49a40.zip |
Update documentation to use Rails.application instead
References to ``AppName::Application` removed in favour of ``Rails.application``
as generated with a new rails 4.1 app.
[ci skip]
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: |