Class: Airbrake::Filters::KeysWhitelist
- Inherits:
-
Object
- Object
- Airbrake::Filters::KeysWhitelist
- Includes:
- KeysFilter
- Defined in:
- lib/airbrake-ruby/filters/keys_whitelist.rb
Overview
A default Airbrake notice filter. Filters everything in the modifiable payload of a notice, but specified keys.
Instance Method Summary collapse
-
#should_filter?(key) ⇒ Boolean
True if the key doesn’t match any pattern, false otherwise.
Methods included from KeysFilter
Instance Method Details
#should_filter?(key) ⇒ Boolean
32 33 34 |
# File 'lib/airbrake-ruby/filters/keys_whitelist.rb', line 32 def should_filter?(key) @patterns.none? { |pattern| key.to_s.match(pattern) } end |