This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

After an exception notification has been delivered the rack environme…

…nt variable 'exception_notifier.delivered' will be set to +true+.

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 75c7adf commit c2359797a9aafc764ac93659100408ac23e88d07 @lawrencepit lawrencepit committed with jeremy Apr 28, 2010
Showing with 6 additions and 0 deletions.
  1. +5 −0 README
  2. +1 −0 lib/exception_notifier.rb
View
5 README
@@ -59,6 +59,11 @@ 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.
+== Notification
+
+After an exception notification has been delivered the rack environment variable
+'exception_notifier.delivered' will be set to +true+.
+
== Rails 2.3 stable and earlier
If you are running Rails 2.3 then see the branch for that:
@@ -23,6 +23,7 @@ def call(env)
unless Array.wrap(options[:ignore_exceptions]).include?(exception.class)
Notifier.exception_notification(env, exception).deliver
+ env['exception_notifier.delivered'] = true
end
raise exception

0 comments on commit c235979

Please sign in to comment.