Skip to content
This repository
Browse code

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 Markin authored May 07, 2008

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

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

0 notes on commit d912bd5

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