diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:40:05 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:40:05 +0000 |
commit | 31d3048706eee65673eeebe28d76064632420a97 (patch) | |
tree | 1bcd15d7c74ebb5e696efb2300b3edf9193e33e9 /actionpack/lib/action_controller | |
parent | 4b3e964a1a9d9b5c4a7925ccb8a0090f869fdca4 (diff) | |
download | rails-31d3048706eee65673eeebe28d76064632420a97.tar.gz rails-31d3048706eee65673eeebe28d76064632420a97.tar.bz2 rails-31d3048706eee65673eeebe28d76064632420a97.zip |
Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own (closes #6295) [mnaberez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/rescue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/rescue.rb b/actionpack/lib/action_controller/rescue.rb index 34014bfd38..363eba2931 100644 --- a/actionpack/lib/action_controller/rescue.rb +++ b/actionpack/lib/action_controller/rescue.rb @@ -66,7 +66,7 @@ module ActionController #:nodoc: def rescue_action_locally(exception) add_variables_to_assigns @template.instance_variable_set("@exception", exception) - @template.instance_variable_set("@rescues_path", File.dirname(__FILE__) + "/templates/rescues/") + @template.instance_variable_set("@rescues_path", File.dirname(rescues_path("stub"))) @template.send(:assign_variables_from_controller) @template.instance_variable_set("@contents", @template.render_file(template_path_for_local_rescue(exception), false)) |