diff --git a/lib/exception_notification/notifiable.rb b/lib/exception_notification/notifiable.rb index 1ed40624..ce9e5bee 100644 --- a/lib/exception_notification/notifiable.rb +++ b/lib/exception_notification/notifiable.rb @@ -50,7 +50,7 @@ def rescue_action_in_public(exception) end def deliver_exception_notification? - !self.class.skip_exception_notifications? && ![404, "404 Not Found"].include?(response.status) + !self.class.skip_exception_notifications? && !["404", "422", "404 Not Found"].include?(response.status.to_s) end def notify_about_exception(exception)