Skip to content

Commit 61e77a1

Browse files
committed
Update README with background_exception_notification usage.
1 parent 8f2b6f8 commit 61e77a1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ In the above case, @document and @person would be made available to the email
8383
renderer, allowing your new section(s) to access and display them. See the
8484
existing sections defined by the plugin for examples of how to write your own.
8585

86+
Background Notifications
87+
---
88+
89+
If you want to send notifications from a background process like
90+
DelayedJob, you should use the background_exception_notification method
91+
like this:
92+
93+
begin
94+
some code...
95+
rescue => e
96+
ExceptionNotifier::Notifier.background_exception_notification(e)
97+
end
98+
8699
Manually notify of exception
87100
---
88101

0 commit comments

Comments
 (0)