aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-11-19 14:11:06 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2012-11-19 14:11:06 -0200
commit90ee4c5f2816c910cb7a390bc6df01ec63633a41 (patch)
treeb465ec72f996edc276a86744d0412b4eaf4fc1df
parent3b99653587cead2f8b6ba4ee163c8b736d5f7f34 (diff)
downloadrails-90ee4c5f2816c910cb7a390bc6df01ec63633a41.tar.gz
rails-90ee4c5f2816c910cb7a390bc6df01ec63633a41.tar.bz2
rails-90ee4c5f2816c910cb7a390bc6df01ec63633a41.zip
Fix UpgradeSignatureToEncryptionCookieStore doc
-rw-r--r--actionpack/lib/action_dispatch/middleware/session/cookie_store.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
index 2106a09fd4..ce5f89ee5b 100644
--- a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
+++ b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
@@ -95,22 +95,17 @@ module ActionDispatch
end
# This cookie store helps you upgrading apps that use +CookieStore+ to the new default +EncryptedCookieStore+
- #
- # To use this CookieStore use this
+ # To use this CookieStore set
#
# Myapp::Application.config.session_store :upgrade_signature_to_encryption_cookie_store, key: '_myapp_session'
#
# in your config/initializers/session_store.rb
#
- # You will also need to go to your config/initializers/secret_token.rb
- #
- # leave what you already had in your 3.2.x app
- #
- # Myapp::Application.config.secret_token = 'some secret'
- #
- # and also set secret_key_base to allow Rails to upgrade your users cookies
+ # You will also need to add
#
# Myapp::Application.config.secret_key_base = 'some secret'
+ #
+ # in your config/initializers/secret_token.rb, but do not remove +Myapp::Application.config.secret_token = 'some secret'+
class UpgradeSignatureToEncryptionCookieStore < EncryptedCookieStore
private