Class: ActionDispatch::Cookies::UpgradeLegacySignedCookieJar
- Inherits:
-
SignedCookieJar
- Object
- SignedCookieJar
- ActionDispatch::Cookies::UpgradeLegacySignedCookieJar
- Includes:
- VerifyAndUpgradeLegacySignedMessage
- Defined in:
- actionpack/lib/action_dispatch/middleware/cookies.rb
Overview
UpgradeLegacySignedCookieJar is used instead of SignedCookieJar if config.secret_token and config.secret_key_base are both set. It reads legacy cookies signed with the old dummy key generator and re-saves them using the new key generator to provide a smooth upgrade path.
Instance Method Summary collapse
Methods included from VerifyAndUpgradeLegacySignedMessage
#initialize, #verify_and_upgrade_legacy_signed_message
Methods inherited from SignedCookieJar
Methods included from ChainedCookieJars
#encrypted, #permanent, #signed, #signed_or_encrypted
Instance Method Details
#[](name) ⇒ Object
418 419 420 421 422 |
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 418 def [](name) if = @parent_jar[name] verify() || (name, ) end end |