Class: Blinkist::AirbrakeScrubber::ParamsPassword

Inherits:
Object
  • Object
show all
Defined in:
lib/blinkist-airbrake-scrubber/scrubbers/params_password.rb

Class Method Summary collapse

Class Method Details

.scrub!Object



7
8
9
10
11
12
13
14
15
# File 'lib/blinkist-airbrake-scrubber/scrubbers/params_password.rb', line 7

def self.scrub!
  ::Airbrake.add_filter do |notice|
    notice[:params] = DeepTraversal.new(notice[:params]).traverse do |key, value|
      value = FILTERED if key.to_s == 'password'
      value
    end
    notice
  end
end