Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add a filter_parameter_logging usage hint to generated ApplicationCon…


This may help to remind the developer to filter sensitive information from application logs.
Closes #11578
  • Loading branch information...
1 parent 88e4de5 commit d912bd5672316454457ae83f6e9dda5197beeb6f @yaroslav yaroslav committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 railties/helpers/application.rb
5 railties/helpers/application.rb
@@ -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

0 comments on commit d912bd5

Please sign in to comment.
Something went wrong with that request. Please try again.