Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update source of secret_key_base in cookie rotator example #44862

Merged
merged 1 commit into from Apr 11, 2022
Merged

Update source of secret_key_base in cookie rotator example #44862

merged 1 commit into from Apr 11, 2022

Conversation

jackscotti
Copy link
Contributor

@jackscotti jackscotti commented Apr 8, 2022

Summary

secrets.secret_key_base can be one of the many different places where secret_key_base is set and therefore it might not work with your application.
Updating the docs to use Rails.application.secret_key_base fixes the issue.

Rails secret_key_base - docs

`secrets.secret_key_base` can be one of the many different places where `secret_key_base` is set and therefore it might not work with your application.
Updating the docs to use `Rails.application.secret_key_base` fixes the issue.

Rails `secret_key_base` - [docs](https://api.rubyonrails.org/classes/Rails/Application.html#method-i-secret_key_base)
@rails-bot rails-bot bot added the docs label Apr 8, 2022
@jonathanhefner jonathanhefner merged commit 98b8b0d into rails:main Apr 11, 2022
@jonathanhefner
Copy link
Member

jonathanhefner commented Apr 11, 2022

Thank you, @jackscotti! 🎉

Backported to 7-0-stable in 06ab914.

jonathanhefner added a commit that referenced this pull request Apr 13, 2022
Update source of `secret_key_base` in cookie rotator example [ci-skip]

(cherry picked from commit 98b8b0d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants