diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2014-08-12 21:57:51 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2014-08-12 21:57:51 +0200 |
commit | 29be3f5d8386fc9a8a67844fa9b7d6860574e715 (patch) | |
tree | ad7d10df5e8f0507bf8cd9462b59d60edd3a95e6 /railties | |
parent | c69e21d36b3a14f6894fb768ffeb165bd8d7c533 (diff) | |
download | rails-29be3f5d8386fc9a8a67844fa9b7d6860574e715.tar.gz rails-29be3f5d8386fc9a8a67844fa9b7d6860574e715.tar.bz2 rails-29be3f5d8386fc9a8a67844fa9b7d6860574e715.zip |
Add config option for cookies digest
You can now configure custom digest for cookies in the same way as `serializer`:
config.action_dispatch.cookies_digest = 'SHA256'
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 61639be7c6..6a4660bad0 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -256,7 +256,8 @@ module Rails "action_dispatch.signed_cookie_salt" => config.action_dispatch.signed_cookie_salt, "action_dispatch.encrypted_cookie_salt" => config.action_dispatch.encrypted_cookie_salt, "action_dispatch.encrypted_signed_cookie_salt" => config.action_dispatch.encrypted_signed_cookie_salt, - "action_dispatch.cookies_serializer" => config.action_dispatch.cookies_serializer + "action_dispatch.cookies_serializer" => config.action_dispatch.cookies_serializer, + "action_dispatch.cookies_digest" => config.action_dispatch.cookies_digest }) end end |