Skip to content

Commit c235979

Browse files
lawrencepitjeremy
authored andcommitted
After an exception notification has been delivered the rack environment variable 'exception_notifier.delivered' will be set to +true+.
Signed-off-by: Jeremy Kemper <[email protected]>
1 parent 75c7adf commit c235979

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README

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

62+
== Notification
63+
64+
After an exception notification has been delivered the rack environment variable
65+
'exception_notifier.delivered' will be set to +true+.
66+
6267
== Rails 2.3 stable and earlier
6368

6469
If you are running Rails 2.3 then see the branch for that:

lib/exception_notifier.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def call(env)
2323

2424
unless Array.wrap(options[:ignore_exceptions]).include?(exception.class)
2525
Notifier.exception_notification(env, exception).deliver
26+
env['exception_notifier.delivered'] = true
2627
end
2728

2829
raise exception

0 commit comments

Comments
 (0)