Skip to content

Commit bd924ab

Browse files
committed
Fix custom section partials not being found in view path.
1 parent 2f2abda commit bd924ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/exception_notifier/notifier.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
class ExceptionNotifier
55
class Notifier < ActionMailer::Base
66
self.mailer_name = 'exception_notifier'
7+
#Append application view path to the ExceptionNotifier lookup context.
8+
self.append_view_path Rails.root.nil? ? "app/views" : "#{Rails.root}/app/views" if defined?(Rails)
79
self.append_view_path "#{File.dirname(__FILE__)}/views"
810

911
class << self

0 commit comments

Comments
 (0)