lib/parliament/utils/config/initializers/airbrake.rb in parliament-utils-0.8.4 vs lib/parliament/utils/config/initializers/airbrake.rb in parliament-utils-0.8.5
- old
+ new
@@ -60,12 +60,10 @@
# A filter method that chooses which errors to ignore before sending them to
# Airbrake. This can be based on type, message, file, region or any other part
# of the error's JSON
Airbrake.add_filter do |notice|
- if notice[:errors].any? { |error| error[:type] == 'ActionController::RoutingError' }
- notice.ignore!
- end
+ notice.ignore! if notice[:errors].any? { |error| error[:type] == 'ActionController::RoutingError' }
end
# If you want to convert your log messages to Airbrake errors, we offer an
# integration with the Logger class from stdlib.
# https://github.com/airbrake/airbrake#logger