Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8821

Show
Ignore:
Timestamp:
02/08/08 18:26:13 (8 months ago)
Author:
david
Message:

Use template root as an class variable instead of method to make it work with latest Rails

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/exception_notification/lib/exception_notifier.rb

    r8194 r8821  
    3434  cattr_accessor :sections 
    3535 
    36   def self.reloadable?; false; end 
     36  self.template_root = "#{File.dirname(__FILE__)}/../views" 
     37 
     38  def self.reloadable?() false end 
    3739 
    3840  def exception_notification(exception, controller, request, data={}) 
     
    5153  end 
    5254 
    53   def template_root 
    54     "#{File.dirname(__FILE__)}/../views" 
    55   end 
    56  
    5755  private 
    5856