Changeset 8835
- Timestamp:
- 02/10/08 01:08:05 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2-0-stable/actionpack/lib/action_view/template_error.rb
r8210 r8835 11 11 base_path, assigns.dup, source, original_exception 12 12 @file_path = file_path 13 @backtrace = compute_backtrace 13 14 end 14 15 … … 73 74 end 74 75 76 # don't do anything nontrivial here. Any raised exception from here becomes fatal 77 # (and can't be rescued). 75 78 def backtrace 76 [ 77 "#{source_location.capitalize}\n\n#{source_extract(4)}\n " + 78 clean_backtrace.join("\n ") 79 ] 79 @backtrace 80 80 end 81 81 82 82 private 83 def compute_backtrace 84 [ 85 "#{source_location.capitalize}\n\n#{source_extract(4)}\n " + 86 clean_backtrace.join("\n ") 87 ] 88 end 89 83 90 def strip_base_path(path) 84 91 stripped_path = File.expand_path(path).gsub(@base_path, "")