instance method
build_backtrace
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
build_backtrace()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 260
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.base_label)
thread_backtrace_location = if loc.respond_to?(:__getobj__)
loc.__getobj__
else
loc
end
SourceMapLocation.new(thread_backtrace_location, built_methods[loc.base_label])
else
loc
end
end
end
Defined in actionpack/lib/action_dispatch/middleware/exception_wrapper.rb line 260
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ExceptionWrapper