1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/bug_report_templates
Benjamin Fleischer db5f1a46f2 secret_token is now saved in Rails.application.secrets.secret_token
- `secrets.secret_token` is now used in all places `config.secret_token` was
  - `secrets.secret_token`, when not present in `config/secrets.yml`,
    now falls back to the value of `config.secret_token`
  - when `secrets.secret_token` is set, it over-writes
    `config.secret_token` so they are the same (for backwards-compatibility)
  - Update docs to reference app.secrets in all places
    - Remove references to `config.secret_token`, `config.secret_key_base`
- Warn that missing secret_key_base is deprecated
- Add tests for secret_token, key_generator, and message_verifier
  - the legacy key generator is used with the message verifier when
    secrets.secret_key_base is blank and secret_token is set
  - app.key_generator raises when neither secrets.secret_key_base nor
    secret_token are set
  - app.env_config    raises when neither secrets.secret_key_base nor
    secret_token are set
- Add changelog

Run focused tests via
ruby -w -Itest test/application/configuration_test.rb -n '/secret_|key_/'
2014-11-02 21:21:09 -06:00
..
action_controller_gem.rb secret_token is now saved in Rails.application.secrets.secret_token 2014-11-02 21:21:09 -06:00
action_controller_master.rb secret_token is now saved in Rails.application.secrets.secret_token 2014-11-02 21:21:09 -06:00
active_record_gem.rb Ensure backward compatibility between Minitest 5 and 4 2013-12-27 11:30:53 +01:00
active_record_master.rb [ci skip]Add i18n master to the Gemfile 2014-07-24 17:08:11 +09:00