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

Commit

Permalink
Merge pull request rails#11 from vovik/2-3-stable
Browse files Browse the repository at this point in the history
hack to fix undefined method `find_template' for Array
  • Loading branch information
devdatta committed Jun 3, 2011
2 parents f9865f5 + f6f6dd3 commit b42e5f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/exception_notification/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class ExceptionNotification::Notifier < ActionMailer::Base
self.mailer_name = 'exception_notifier'
self.view_paths << "#{File.dirname(__FILE__)}/../../views"

# next line is a hack to fix
# undefined method `find_template' for #<Array:0x000001009cd230>
# after Rails 2.3.8 -> 2.3.11 upgrade
self.view_paths = ActionView::PathSet.new(self.view_paths) unless self.view_paths.respond_to?(:find_template)

@@sender_address = %("Exception Notifier" <[email protected]>)
cattr_accessor :sender_address

Expand Down

0 comments on commit b42e5f0

Please sign in to comment.