mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
Ensure all complied method names are cleaned up in the error backtrace
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user