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:
parent
c10efc8386
commit
a27bb77482
1 changed files with 1 additions and 2 deletions
|
@ -188,8 +188,7 @@ module ActionDispatch # :nodoc:
|
||||||
# information.
|
# information.
|
||||||
|
|
||||||
def content_type
|
def content_type
|
||||||
type = parse_content_type.mime_type
|
parse_content_type.mime_type
|
||||||
type && type.to_s
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def sending_file=(v)
|
def sending_file=(v)
|
||||||
|
|
Loading…
Reference in a new issue