Class: Airbrake::Filters::KeysBlacklist
- Inherits:
-
Object
- Object
- Airbrake::Filters::KeysBlacklist
- Includes:
- KeysFilter
- Defined in:
- lib/airbrake-ruby/filters/keys_blacklist.rb
Overview
A default Airbrake notice filter. Filters only specific keys listed in the list of parameters in the modifiable payload of a notice.
Instance Method Summary collapse
-
#should_filter?(key) ⇒ Boolean
True if the key matches at least one pattern, false otherwise.
Methods included from KeysFilter
Instance Method Details
#should_filter?(key) ⇒ Boolean
Returns true if the key matches at least one pattern, false otherwise.
32 33 34 |
# File 'lib/airbrake-ruby/filters/keys_blacklist.rb', line 32 def should_filter?(key) @patterns.any? { |pattern| key.to_s.match(pattern) } end |