Skip to content

Commit

Permalink
Adds access to some notifier variables in blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gucki committed May 16, 2018
1 parent b80ce40 commit 0c07ea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/exception_notifier/email_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def method_missing(*args, &block)

def self.extended(base)
base.class_eval do
attr_reader :env, :exception, :request, :data

self.send(:include, ExceptionNotifier::BacktraceCleaner)

# Append application view path to the ExceptionNotifier lookup context.
Expand Down

0 comments on commit 0c07ea6

Please sign in to comment.