Skip to content

Commit

Permalink
Merge pull request #44862 from jackscotti/patch-1
Browse files Browse the repository at this point in the history
Update source of `secret_key_base` in cookie rotator example [ci-skip]

(cherry picked from commit 98b8b0d)
  • Loading branch information
jonathanhefner committed Apr 13, 2022
1 parent 6a7fd07 commit 06ab914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/upgrading_ruby_on_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ The following is an example for rotator for the encrypted cookies.
Rails.application.config.after_initialize do
Rails.application.config.action_dispatch.cookies_rotations.tap do |cookies|
salt = Rails.application.config.action_dispatch.authenticated_encrypted_cookie_salt
secret_key_base = Rails.application.secrets.secret_key_base
secret_key_base = Rails.application.secret_key_base

key_generator = ActiveSupport::KeyGenerator.new(
secret_key_base, iterations: 1000, hash_digest_class: OpenSSL::Digest::SHA1
Expand Down

0 comments on commit 06ab914

Please sign in to comment.