diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-01-14 10:30:54 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-01-14 10:36:54 +0900 |
commit | d9bdb61158812484aabf2a31fb943dccb7749887 (patch) | |
tree | 652564da963be18c42182965694cb083a56264d9 /actionpack | |
parent | f5ab4055b909e7b325304c5a7e414c28bbe441b7 (diff) | |
download | rails-d9bdb61158812484aabf2a31fb943dccb7749887.tar.gz rails-d9bdb61158812484aabf2a31fb943dccb7749887.tar.bz2 rails-d9bdb61158812484aabf2a31fb943dccb7749887.zip |
Space Oddity
Converting nbsp(\u{00A0}) to the normal ASCII space(\u{0020})
[ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/http/response.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/request/session.rb | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 29cf821090..5427425ef7 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -259,7 +259,7 @@ module ActionDispatch 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 diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index b426d272f2..14f86c7c07 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -232,7 +232,7 @@ module ActionDispatch # :nodoc: 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' diff --git a/actionpack/lib/action_dispatch/request/session.rb b/actionpack/lib/action_dispatch/request/session.rb index 9e7fcbd849..aa8dc7cd36 100644 --- a/actionpack/lib/action_dispatch/request/session.rb +++ b/actionpack/lib/action_dispatch/request/session.rb @@ -109,7 +109,7 @@ module ActionDispatch @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 @@ module ActionDispatch 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) |