Browse files

Ensure all complied method names are cleaned up in the error backtrace

  • Loading branch information...
1 parent 39ba2da commit cd6fe831526d84ae40e425cadbf22f42a375de2a @josh josh committed Jul 5, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/template_error.rb
View
2 actionpack/lib/action_view/template_error.rb
@@ -105,6 +105,6 @@ def source_location
end
if defined?(Exception::TraceSubstitutions)
- Exception::TraceSubstitutions << [/:in\s+`_run_(html|xml).*'\s*$/, '']
+ Exception::TraceSubstitutions << [/:in\s+`_run_.*'\s*$/, '']
Exception::TraceSubstitutions << [%r{^\s*#{Regexp.escape RAILS_ROOT}/}, ''] if defined?(RAILS_ROOT)
end

0 comments on commit cd6fe83

Please sign in to comment.