From cb0ca5aa9968ab64e31cba7d46d50bbbadb44505 Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Mon, 24 Jan 2011 16:21:37 -0500 Subject: [PATCH] no longer email about 404/422 errors -- fixed type mismatch --- lib/exception_notification/notifiable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)