From 1b652d78225fe3237e084370c877d95370819d15 Mon Sep 17 00:00:00 2001 From: Corin Langosch Date: Wed, 16 May 2018 22:14:28 +0200 Subject: [PATCH] Adds access to some notifier variables in blocks --- lib/exception_notifier/email_notifier.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/exception_notifier/email_notifier.rb b/lib/exception_notifier/email_notifier.rb index 2a39cbd3..1150a052 100644 --- a/lib/exception_notifier/email_notifier.rb +++ b/lib/exception_notifier/email_notifier.rb @@ -12,6 +12,8 @@ class EmailNotifier < BaseNotifier :verbose_subject, :normalize_subject, :include_controller_and_action_names_in_subject, :delivery_method, :mailer_settings, :email_headers, :mailer_parent, :template_path, :deliver_with) + attr_reader :env, :exception, :request, :data + module Mailer class MissingController def method_missing(*args, &block)