begin
10 / 0
rescue Exception => e
ExceptionNotifier.deliver_exception_notification(e, self, request)
end
begin
10 / 0
rescue Exception => e
ExceptionNotifier::Notifier.exception_notification(request.env, e).deliver
end
來源: http://stackoverflow.com/questions/1504844/rails-exception-notification-plugin-force-send-email
沒有留言:
張貼留言