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.
|
||||
|
||||
def content_type
|
||||
type = parse_content_type.mime_type
|
||||
type && type.to_s
|
||||
parse_content_type.mime_type
|
||||
end
|
||||
|
||||
def sending_file=(v)
|
||||
|
|
Loading…
Reference in a new issue