Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit b42e5f0

Browse files
committed
Merge pull request rails#11 from vovik/2-3-stable
hack to fix undefined method `find_template' for Array
2 parents f9865f5 + f6f6dd3 commit b42e5f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/exception_notification/notifier.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ class ExceptionNotification::Notifier < ActionMailer::Base
2424
self.mailer_name = 'exception_notifier'
2525
self.view_paths << "#{File.dirname(__FILE__)}/../../views"
2626

27+
# next line is a hack to fix
28+
# undefined method `find_template' for #<Array:0x000001009cd230>
29+
# after Rails 2.3.8 -> 2.3.11 upgrade
30+
self.view_paths = ActionView::PathSet.new(self.view_paths) unless self.view_paths.respond_to?(:find_template)
31+
2732
@@sender_address = %("Exception Notifier" <[email protected]>)
2833
cattr_accessor :sender_address
2934

0 commit comments

Comments
 (0)