Skip to content

Commit

Permalink
Fix custom section partials not being found in view path.
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Aug 4, 2011
1 parent 2f2abda commit bd924ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/exception_notifier/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
class ExceptionNotifier
class Notifier < ActionMailer::Base
self.mailer_name = 'exception_notifier'
#Append application view path to the ExceptionNotifier lookup context.
self.append_view_path Rails.root.nil? ? "app/views" : "#{Rails.root}/app/views" if defined?(Rails)
self.append_view_path "#{File.dirname(__FILE__)}/views"

class << self
Expand Down

0 comments on commit bd924ab

Please sign in to comment.