method
create_template
v7.1.3.2 -
Show latest stable
- Class:
ActionDispatch::DebugExceptions
create_template(request, wrapper)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 114
def create_template(request, wrapper)
DebugView.new(
request: request,
exception_wrapper: wrapper,
# Everything should use the wrapper, but we need to pass
# `exception` for legacy code.
exception: wrapper.exception,
traces: wrapper.traces,
show_source_idx: wrapper.source_to_show_id,
trace_to_show: wrapper.trace_to_show,
routes_inspector: routes_inspector(wrapper),
source_extracts: wrapper.source_extracts,
)
end