diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-21 11:39:57 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-21 11:57:24 +0100 |
commit | 31fddf2ace29518399f15f718ff408737e0031a0 (patch) | |
tree | edd9ec04178e5082a0e5b79c7759fc07432dbc08 /railties/lib/generators | |
parent | b1bc3b3cd352f68d79d7e232e9520eacb56ca41e (diff) | |
download | rails-31fddf2ace29518399f15f718ff408737e0031a0.tar.gz rails-31fddf2ace29518399f15f718ff408737e0031a0.tar.bz2 rails-31fddf2ace29518399f15f718ff408737e0031a0.zip |
Tidy up new filter_parameters implementation.
Diffstat (limited to 'railties/lib/generators')
-rw-r--r-- | railties/lib/generators/rails/app/templates/app/controllers/application_controller.rb | 1 | ||||
-rw-r--r-- | railties/lib/generators/rails/app/templates/config/application.rb | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/railties/lib/generators/rails/app/templates/app/controllers/application_controller.rb b/railties/lib/generators/rails/app/templates/app/controllers/application_controller.rb index 2cdf4eae54..e8065d9505 100644 --- a/railties/lib/generators/rails/app/templates/app/controllers/application_controller.rb +++ b/railties/lib/generators/rails/app/templates/app/controllers/application_controller.rb @@ -1,4 +1,3 @@ class ApplicationController < ActionController::Base protect_from_forgery - filter_parameter_logging :password end diff --git a/railties/lib/generators/rails/app/templates/config/application.rb b/railties/lib/generators/rails/app/templates/config/application.rb index 8a7f024a4d..ecebbc6146 100644 --- a/railties/lib/generators/rails/app/templates/config/application.rb +++ b/railties/lib/generators/rails/app/templates/config/application.rb @@ -30,9 +30,8 @@ module <%= app_const_base %> # g.template_engine :erb # g.test_framework :test_unit, :fixture => true # end - + # Configure sensitive parameters which will be filtered from the log file. - # Check the documentation for ActionDispatch::Http::ParametersFilter for more information. - # config.filter_parameters :password + config.filter_parameters :password end end |