Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a filter_parameter_logging usage hint to generated ApplicationCon…

…troller.

This may help to remind the developer to filter sensitive information from application logs.
Closes #11578
  • Loading branch information...
commit d912bd5672316454457ae83f6e9dda5197beeb6f 1 parent 88e4de5
@yaroslav yaroslav authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 railties/helpers/application.rb
View
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
end
Please sign in to comment.
Something went wrong with that request. Please try again.