Permalink
Browse files

Fix UpgradeSignatureToEncryptionCookieStore doc

  • Loading branch information...
1 parent 3b99653 commit 90ee4c5f2816c910cb7a390bc6df01ec63633a41 @spastorino spastorino committed Nov 19, 2012
Showing with 4 additions and 9 deletions.
  1. +4 −9 actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
@@ -95,22 +95,17 @@ def cookie_jar(env)
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

0 comments on commit 90ee4c5

Please sign in to comment.