Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

no longer notify about 404 or InvalidAuthenticityToken errors #16

Open
wants to merge 1 commit into
base: 2-3-stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/exception_notification/notifiable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down