1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

mime_type will always return a string

This commit is contained in:
Aaron Patterson 2015-09-08 16:08:13 -07:00
parent c10efc8386
commit a27bb77482

View file

@ -188,8 +188,7 @@ module ActionDispatch # :nodoc:
# information.
def content_type
type = parse_content_type.mime_type
type && type.to_s
parse_content_type.mime_type
end
def sending_file=(v)