Skip to content
Browse files

Fix the parameter logging filtering...

Call filter_parameter_logging only once with all sensitive field names, rather than once per field to protect.
  • Loading branch information...
1 parent 73c5e89 commit 8d73a2a5ff64954ffb230dd7561a17e6fc1781af @webmat webmat committed with emk Mar 11, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/controllers/application.rb
View
3 app/controllers/application.rb
@@ -14,8 +14,7 @@ def self.inherited(klass)
klass.auto_include!
end
- filter_parameter_logging "password"
- filter_parameter_logging "token"
+ filter_parameter_logging :password, :token
protected
helper_method :admin?

0 comments on commit 8d73a2a

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