method
render_format
v4.0.2 -
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 29
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