Created
April 7, 2014 20:10
-
-
Save albus522/10043044 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cj = ActionDispatch::Cookies::CookieJar.new( | |
Rails.application.key_generator, | |
Figaro.env.domain, # host | |
false, # secure | |
{ | |
signed_cookie_salt: Rails.application.config.action_dispatch.signed_cookie_salt, | |
encrypted_cookie_salt: Rails.application.config.action_dispatch.encrypted_cookie_salt, | |
encrypted_signed_cookie_salt: Rails.application.config.action_dispatch.encrypted_signed_cookie_salt, | |
secret_key_base: Rails.application.config.secret_key_base, | |
serializer: Rails.application.config.action_dispatch.cookies_serializer | |
} | |
) | |
cj.update(cookie_hash) | |
cookie_hash.each_key {|k| puts "#{k}:"; p cj.encrypted[k] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment