1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add a filter_parameter_logging usage hint to generated ApplicationController.

This may help to remind the developer to filter sensitive information from application logs.
Closes #11578
This commit is contained in:
Yaroslav Markin 2008-05-07 13:50:28 +04:00
parent 88e4de5ab7
commit d912bd5672

View file

@ -7,4 +7,9 @@ class ApplicationController < ActionController::Base
# See ActionController::RequestForgeryProtection for details
# Uncomment the :secret if you're not using the cookie session store
protect_from_forgery # :secret => '<%= app_secret %>'
# See ActionController::Base for details
# Uncomment this to filter the contents of submitted sensitive data parameters
# from your application log (in this case, all fields with names like "password").
# filter_parameter_logging :password
end