Skip to content

Commit

Permalink
Use template root as an class variable instead of method to make it w…
Browse files Browse the repository at this point in the history
…ork with latest Rails
  • Loading branch information
dhh committed Feb 8, 2008
1 parent 07a9bf9 commit dfd2129
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/exception_notifier.rb
Expand Up @@ -33,7 +33,9 @@ class ExceptionNotifier < ActionMailer::Base
@@sections = %w(request session environment backtrace)
cattr_accessor :sections

def self.reloadable?; false; end
self.template_root = "#{File.dirname(__FILE__)}/../views"

def self.reloadable?() false end

def exception_notification(exception, controller, request, data={})
content_type "text/plain"
Expand All @@ -50,10 +52,6 @@ def exception_notification(exception, controller, request, data={})
:sections => sections })
end

def template_root
"#{File.dirname(__FILE__)}/../views"
end

private

def sanitize_backtrace(trace)
Expand Down

0 comments on commit dfd2129

Please sign in to comment.