Permalink
Browse files

Use template root as an class variable instead of method to make it w…

…ork with latest Rails
  • Loading branch information...
dhh committed Feb 8, 2008
1 parent 07a9bf9 commit dfd2129f28206d2401a8dc286748d6da16af79dd
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/exception_notifier.rb
@@ -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"
@@ -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)

0 comments on commit dfd2129

Please sign in to comment.