Class: Blinkist::AirbrakeScrubber::ParamsEmail
- Inherits:
-
Object
- Object
- Blinkist::AirbrakeScrubber::ParamsEmail
- Defined in:
- lib/blinkist-airbrake-scrubber/scrubbers/params_email.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_email.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 == 'email' value end notice end end |