public
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/lifo/docrails.git
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
yaroslav (author)
Wed May 07 02:50:28 -0700 2008
commit  d912bd5672316454457ae83f6e9dda5197beeb6f
tree    51e06f09c8f27e20cf4a7105bf248fef66935a7f
parent  88e4de5ab71388bd7f58713dfd15bb594971ae79
...
7
8
9
 
 
 
 
 
10
...
7
8
9
10
11
12
13
14
15
0
@@ -7,4 +7,9 @@ class ApplicationController < ActionController::Base
0
   # See ActionController::RequestForgeryProtection for details
0
   # Uncomment the :secret if you're not using the cookie session store
0
   protect_from_forgery # :secret => '<%= app_secret %>'
0
+  
0
+  # See ActionController::Base for details 
0
+  # Uncomment this to filter the contents of submitted sensitive data parameters
0
+  # from your application log (in this case, all fields with names like "password"). 
0
+  # filter_parameter_logging :password
0
 end

Comments