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 /actionpack | |
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 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/cookie_store.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/routing.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb index 3be0ce1860..0864e7ef2a 100644 --- a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb @@ -29,7 +29,7 @@ module ActionDispatch # # Configure your session store in config/initializers/session_store.rb: # - # Myapp::Application.config.session_store :cookie_store, key: '_your_app_session' + # Rails.application.config.session_store :cookie_store, key: '_your_app_session' # # Configure your secret key in config/secrets.yml: # diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index a9ac2bce1d..9cd884daa3 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -11,7 +11,7 @@ module ActionDispatch # Think of creating routes as drawing a map for your requests. The map tells # them where to go based on some predefined pattern: # - # AppName::Application.routes.draw do + # Rails.application.routes.draw do # Pattern 1 tells some request to go to one place # Pattern 2 tell them to go to another # ... |