edge badge
Methods
D
R
Instance Public methods
debug_hash(object)
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 37
def debug_hash(object)
  object.to_hash.sort_by { |k, _| k.to_s }.map { |k, v| "#{k}: #{v.inspect rescue $!.message}" }.join("\n")
end
debug_headers(headers)
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 29
def debug_headers(headers)
  if headers.present?
    headers.inspect.gsub(",", ",\n")
  else
    "None"
  end
end
debug_params(params)
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 17
def debug_params(params)
  clean_params = params.clone
  clean_params.delete("action")
  clean_params.delete("controller")

  if clean_params.empty?
    "None"
  else
    PP.pp(clean_params, "".dup, 200)
  end
end
render(*)
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 41
def render(*)
  logger = ActionView::Base.logger

  if logger && logger.respond_to?(:silence)
    logger.silence { super }
  else
    super
  end
end