lib/exception_alarm/middleware.rb in exception-alarm-0.1.0 vs lib/exception_alarm/middleware.rb in exception-alarm-1.0.0

- old
+ new

@@ -5,11 +5,11 @@ end def call(env) @app.call(env) rescue Exception => exception - if Rails.application.config.exception_alarm.enable && !ignore_exceptions.include?(exception.class.to_s) && Notifier.recipients.present? - Notifier.alarm(env, exception).deliver + if Rails.application.config.exception_alarm.enable && !ignore_exceptions.include?(exception.class.to_s) && ::ExceptionAlarm::Mailer.recipients.present? + ::ExceptionAlarm::Mailer.alarm(env, exception).deliver end raise exception end