Sha256: 4c7b5b1b54bb42e166021ba314442c31d611052e8023621f1a1cb0a5f56fb530
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
module WebConsole module Interceptor def self.call(request, error) backtrace_cleaner = request.get_header("action_dispatch.backtrace_cleaner") # Get the original exception if ExceptionWrapper decides to follow it. Thread.current[:__web_console_exception] = error # ActionView::Template::Error bypass ExceptionWrapper original # exception following. The backtrace in the view is generated from # reaching out to original_exception in the view. if error.is_a?(ActionView::Template::Error) Thread.current[:__web_console_exception] = error.cause end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.6.0.beta8 | vendor/bundle/ruby/3.2.0/gems/web-console-4.2.1/lib/web_console/interceptor.rb |
web-console-4.2.1 | lib/web_console/interceptor.rb |