method
clean_backtrace
v3.1.0 -
Show latest stable
- Class:
ActionDispatch::ShowExceptions
clean_backtrace(exception, *args)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 149
def clean_backtrace(exception, *args)
defined?(Rails) && Rails.respond_to?(:backtrace_cleaner) ?
Rails.backtrace_cleaner.clean(exception.backtrace, *args) :
exception.backtrace
end