Skip to content

Commit 0c07ea6

Browse files
committed
Adds access to some notifier variables in blocks
1 parent b80ce40 commit 0c07ea6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/exception_notifier/email_notifier.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def method_missing(*args, &block)
2020

2121
def self.extended(base)
2222
base.class_eval do
23+
attr_reader :env, :exception, :request, :data
24+
2325
self.send(:include, ExceptionNotifier::BacktraceCleaner)
2426

2527
# Append application view path to the ExceptionNotifier lookup context.

0 commit comments

Comments
 (0)