diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-20 20:50:25 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-20 20:50:25 -0800 |
commit | f09ad263cabe2e781c1994b85375fee8deba4317 (patch) | |
tree | 8182bb1c53864ab06079e14116a61d66e9617f7d | |
parent | f9a4cf15627ba0c905bf0ab3de2b49b515ac197d (diff) | |
download | rails-f09ad263cabe2e781c1994b85375fee8deba4317.tar.gz rails-f09ad263cabe2e781c1994b85375fee8deba4317.tar.bz2 rails-f09ad263cabe2e781c1994b85375fee8deba4317.zip |
Turn filter_parameter_logging on by default for password and password_confirmation and remove contentless comments
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb b/railties/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb index 6635a3f487..e7991fff92 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb +++ b/railties/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb @@ -2,9 +2,7 @@ # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base - helper :all # include all helpers, all the time - protect_from_forgery # See ActionController::RequestForgeryProtection for details - - # Scrub sensitive parameters from your log - # filter_parameter_logging :password + helper :all + protect_from_forgery + filter_parameter_logging :password, :password_confirmation end |