Method: ActionDispatch::DebugView#debug_headers

Defined in:
actionpack/lib/action_dispatch/middleware/debug_view.rb

#debug_headers(headers) ⇒ Object



41
42
43
44
45
46
47
# File 'actionpack/lib/action_dispatch/middleware/debug_view.rb', line 41

def debug_headers(headers)
  if headers.present?
    headers.inspect.gsub(",", ",\n")
  else
    "None"
  end
end