method
build_backtrace
rails latest stable - Class:
ActionDispatch::ExceptionWrapper
build_backtrace()private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 265
def build_backtrace
built_methods = {}
ActionView::PathRegistry.all_resolvers.each do |resolver|
resolver.built_templates.each do |template|
built_methods[template.method_name] = template
end
end
(@exception.backtrace_locations || []).map do |loc|
if built_methods.key?(loc.label.to_s)
thread_backtrace_location = if loc.respond_to?(:__getobj__)
loc.__getobj__
else
loc
end
SourceMapLocation.new(thread_backtrace_location, built_methods[loc.label.to_s])
else
loc
end
end
end