提交 d9bdb611 编写于 作者: A Akira Matsuda

Space Oddity

Converting nbsp(\u{00A0}) to the normal ASCII space(\u{0020})
[ci skip]
上级 f5ab4055
......@@ -259,7 +259,7 @@ def ip
end
# Returns the IP address of client as a +String+,
# usually set by the RemoteIp middleware.
# usually set by the RemoteIp middleware.
def remote_ip
@remote_ip ||= (get_header("action_dispatch.remote_ip") || ip).to_s
end
......
......@@ -232,7 +232,7 @@ def sending_file=(v)
end
# Sets the HTTP character set. In case of nil parameter
# it sets the charset to utf-8.
# it sets the charset to utf-8.
#
# response.charset = 'utf-16' # => 'utf-16'
# response.charset = nil # => 'utf-8'
......
......@@ -109,7 +109,7 @@ def values
@delegate.values
end
# Writes given value to given key of the session.
# Writes given value to given key of the session.
def []=(key, value)
load_for_write!
@delegate[key.to_s] = value
......@@ -149,7 +149,7 @@ def delete(key)
end
# Returns value of given key from the session, or raises +KeyError+
# if can't find given key in case of not setted dafault value.
# if can't find given key in case of not setted dafault value.
# Returns default value if specified.
#
# session.fetch(:foo)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册