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

Changeset 5243

Show
Ignore:
Timestamp:
10/09/06 00:40:05 (2 years ago)
Author:
david
Message:

Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own (closes #6295) [mnaberez]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r5242 r5243  
    11*SVN* 
     2 
     3* Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own #6295 [mnaberez] 
    24 
    35* Fixed escaping of backslashes in JavaScriptHelper#escape_javascript #6302 [sven@c3d2.de] 
  • trunk/actionpack/lib/action_controller/rescue.rb

    r5212 r5243  
    6767        add_variables_to_assigns 
    6868        @template.instance_variable_set("@exception", exception) 
    69         @template.instance_variable_set("@rescues_path", File.dirname(__FILE__) + "/templates/rescues/")     
     69        @template.instance_variable_set("@rescues_path", File.dirname(rescues_path("stub")))     
    7070        @template.send(:assign_variables_from_controller) 
    7171