Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | `secret_token` is now saved in `Rails.application.secrets.secret_token` | Benjamin Fleischer | 2014-11-02 | 1 | -6/+8 |
| | | | | | | | | | | | | | | | | | | | | | | - `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_/' | ||||
* | add a new constructor that runs load hooks | Aaron Patterson | 2014-08-07 | 1 | -5/+5 |
| | |||||
* | Remove some more globals from tests | Carlos Antonio da Silva | 2014-07-30 | 1 | -26/+26 |
| | | | | | We are using blocks here so we have access to the environment around them, no need for globals. | ||||
* | Make console and generators blocks works at Application instance level | Rafael Mendonça França | 2014-04-14 | 1 | -0/+20 |
| | | | | | | | Like rake tasks and runner blocks these blocks should also being shared between applications since they are stored at the classes. Fixes #14748 | ||||
* | Rails.application should be set inside before_configuration hook | Rafael Mendonça França | 2014-04-07 | 1 | -0/+6 |
| | | | | Fixes #14620 | ||||
* | Fix typos: the indefinite articles(a -> an) | SUGINO Yasuhiro | 2013-09-13 | 1 | -1/+1 |
| | |||||
* | Allowing multiple rails applications in the same ruby instance. | wangjohn | 2013-06-30 | 1 | -0/+148 |
This change provides the ability to create a new application with a configuration which can be specified. |