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

This commit is contained in:
Joshua Peek
2008-07-05 16:34:51 -05:00
parent 39ba2da82b
commit cd6fe83152

View File

@@ -105,6 +105,6 @@ module ActionView
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