method
render_format
v6.0.0 -
Show latest stable
- Class:
ActionDispatch::PublicExceptions
render_format(status, content_type, body)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 45
def render_format(status, content_type, body)
[status, { "Content-Type" => "#{content_type}; charset=#{ActionDispatch::Response.default_charset}",
"Content-Length" => body.bytesize.to_s }, [body]]
end