Skip to content

Commit

Permalink
Merge pull request rails#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]
  • Loading branch information
jonathanhefner committed Apr 11, 2022
2 parents 81f61ca + 4d8e5f8 commit 98b8b0d
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 @@ -381,7 +381,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 98b8b0d

Please sign in to comment.