exception_notification.rb revision 1dd0f9a30e748782de220118a3ba439cf840e015
config = Settings.exception_notifier
if config.try(:enabled)
require 'exception_notification/rails'
require 'exception_notification/sidekiq'
ExceptionNotification.configure do |en|
# Ignore additional exception types.
# ActiveRecord::RecordNotFound, AbstractController::ActionNotFound and ActionController::RoutingError are already added.
# en.ignored_exceptions += %w{ActionView::TemplateError CustomError}
# Email notifier sends notifications by email.
en.add_notifier :email, config.to_hash
end
end