Ticket #6295: remove_hardcoded_path_from_rescue_action_locally.diff
| File remove_hardcoded_path_from_rescue_action_locally.diff, 0.7 kB (added by mnaberez, 3 years ago) |
|---|
-
rescue.rb
old new 66 66 def rescue_action_locally(exception) 67 67 add_variables_to_assigns 68 68 @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"))) 70 70 @template.send(:assign_variables_from_controller) 71 71 72 72 @template.instance_variable_set("@contents", @template.render_file(template_path_for_local_rescue(exception), false))