From 61e77a13bf1bcdbad2a33c6d9ff8116014719188 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Sun, 7 Aug 2011 00:49:10 -0300 Subject: [PATCH] Update README with background_exception_notification usage. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index be8ee68d..939b39b1 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,19 @@ In the above case, @document and @person would be made available to the email renderer, allowing your new section(s) to access and display them. See the existing sections defined by the plugin for examples of how to write your own. +Background Notifications +--- + +If you want to send notifications from a background process like +DelayedJob, you should use the background_exception_notification method +like this: + + begin + some code... + rescue => e + ExceptionNotifier::Notifier.background_exception_notification(e) + end + Manually notify of exception ---