diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-05 12:05:48 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-05 12:05:48 +0530 |
commit | c89e6926a002c148af52d036f16c26f88a5f99d0 (patch) | |
tree | 1217820b5b1fecabb370f9fc8e6f0a0a75ff51a3 | |
parent | bdcacc856641b6d2956616e393926e02b422199e (diff) | |
download | rails-c89e6926a002c148af52d036f16c26f88a5f99d0.tar.gz rails-c89e6926a002c148af52d036f16c26f88a5f99d0.tar.bz2 rails-c89e6926a002c148af52d036f16c26f88a5f99d0.zip |
[ci skip] Update code used for filtering passwords in the configuring guide
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index e80f994deb..57790e6d85 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -104,7 +104,7 @@ application. Accepts a valid week day symbol (e.g. `:monday`). * `config.filter_parameters` used for filtering out the parameters that you don't want shown in the logs, such as passwords or credit card -numbers. New applications filter out passwords by adding the following `config.filter_parameters+=[:password]` in `config/initializers/filter_parameter_logging.rb`. Parameters filter works by partial matching regular expression. +numbers. By default, Rails filters out passwords by adding `Rails.application.config.filter_parameters += [:password]` in `config/initializers/filter_parameter_logging.rb`. Parameters filter works by partial matching regular expression. * `config.force_ssl` forces all requests to be served over HTTPS by using the `ActionDispatch::SSL` middleware, and sets `config.action_mailer.default_url_options` to be `{ protocol: 'https' }`. This can be configured by setting `config.ssl_options` - see the [ActionDispatch::SSL documentation](http://edgeapi.rubyonrails.org/classes/ActionDispatch/SSL.html) for details. |