Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 8d73a2a5ff64954ffb230dd7561a17e6fc1781af 1 parent 73c5e89
Mathieu Martin webmat authored emk committed

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  app/controllers/application.rb
3  app/controllers/application.rb
@@ -14,8 +14,7 @@ def self.inherited(klass)
14 14 klass.auto_include!
15 15 end
16 16
17   - filter_parameter_logging "password"
18   - filter_parameter_logging "token"
  17 + filter_parameter_logging :password, :token
19 18
20 19 protected
21 20 helper_method :admin?

0 comments on commit 8d73a2a

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