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

Response#charset= uses default_charset when nil is passed

This commit is contained in:
yui-knk 2017-07-13 16:32:15 +09:00
parent 58f10a31b3
commit 5e989027e0

View file

@ -252,7 +252,7 @@ module ActionDispatch # :nodoc:
end end
# Sets the HTTP character set. In case of +nil+ parameter # Sets the HTTP character set. In case of +nil+ parameter
# it sets the charset to utf-8. # it sets the charset to +default_charset+.
# #
# response.charset = 'utf-16' # => 'utf-16' # response.charset = 'utf-16' # => 'utf-16'
# response.charset = nil # => 'utf-8' # response.charset = nil # => 'utf-8'