Class: ActionDispatch::Cookies::CookieJar
- Inherits:
-
Object
- Object
- ActionDispatch::Cookies::CookieJar
- Defined in:
- lib/secret_token_migration/action_dispatch/cookies.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build_with_deprecated_secret(request) ⇒ Object
7 8 9 10 11 |
# File 'lib/secret_token_migration/action_dispatch/cookies.rb', line 7 def build_with_deprecated_secret(request) build_without_deprecated_secret(request).tap do |hash| hash.instance_variable_set(:@deprecated_secret, request.env[DEPRECATED_TOKEN_KEY]) end end |
Instance Method Details
#signed ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/secret_token_migration/action_dispatch/cookies.rb', line 15 def signed @signed ||= if @deprecated_secret ActionDispatch::Cookies::SignedCookieWithDeprecatedTokenJar.new(self, @secret, {:deprecated_secret => @deprecated_secret}) else ActionDispatch::Cookies::SignedCookieJar.new(self, @secret) end end |