Skip to content

Commit

Permalink
Update README with background_exception_notification usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Aug 7, 2011
1 parent 8f2b6f8 commit 61e77a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

Expand Down

0 comments on commit 61e77a1

Please sign in to comment.