method
content_type
v2.1.0 -
Show latest stable
- Class:
ActionController::AbstractResponse
content_type()public
No documentation available.
# File actionpack/lib/action_controller/response.rb, line 17
def content_type
content_type = String(headers["Content-Type"] || headers["type"]).split(";")[0]
content_type.blank? ? nil : content_type
end