diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-05 15:41:39 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-05 15:50:53 -0300 |
commit | 23714ec33ffd87d314d74f3b4ff6b6075a652be8 (patch) | |
tree | 3bb8582acf5381ecf196e60ae574bc8a5265d4ae /railties/lib | |
parent | fa6e995a03ea2daa78902f7ea5cc9cb570014609 (diff) | |
download | rails-23714ec33ffd87d314d74f3b4ff6b6075a652be8.tar.gz rails-23714ec33ffd87d314d74f3b4ff6b6075a652be8.tar.bz2 rails-23714ec33ffd87d314d74f3b4ff6b6075a652be8.zip |
Move config.filter_parameters to you own initializer file
This is very rarely changed and does not deserve to be in application.rb
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 3 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb index e459caa74e..1122d8f6a5 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -23,9 +23,6 @@ module <%= app_const_base %> # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) - # Configure sensitive parameters which will be filtered from the log file. - config.filter_parameters += [:password] - # Use SQL instead of Active Record's schema dumper when creating the database. # This is necessary if your schema can't be completely dumped by the schema dumper, # like if you have constraints or database-specific column types. diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb b/railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000000..e203fcee0a --- /dev/null +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,2 @@ +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] |