diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-26 14:03:23 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-26 19:14:04 +0300 |
commit | 096bc4be6b318f774e629d532467173b37925aab (patch) | |
tree | f1e795235f94711378d66f3094d7fdaeff248bc7 /actionpack/lib/action_dispatch | |
parent | 31cc1c2ef320f554120a1736eaf087aca19464a6 (diff) | |
download | rails-096bc4be6b318f774e629d532467173b37925aab.tar.gz rails-096bc4be6b318f774e629d532467173b37925aab.tar.bz2 rails-096bc4be6b318f774e629d532467173b37925aab.zip |
Add missing nodocs and docs for ActionDispatch::Request [ci skip]
add missing dot to end of the doc
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 0f5c5a8eb1..836bdead25 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -235,11 +235,13 @@ module ActionDispatch end alias :xhr? :xml_http_request? + # Returns the IP address of client as a +String+. def ip @ip ||= super end - # Originating IP address, usually set by the RemoteIp middleware. + # Returns the IP address of client as a +String+, + # usually set by the RemoteIp middleware. def remote_ip @remote_ip ||= (@env["action_dispatch.remote_ip"] || ip).to_s end @@ -256,13 +258,13 @@ module ActionDispatch env[ACTION_DISPATCH_REQUEST_ID] end - def request_id=(id) + def request_id=(id) # :nodoc: env[ACTION_DISPATCH_REQUEST_ID] = id end alias_method :uuid, :request_id - def x_request_id + def x_request_id # :nodoc @env[HTTP_X_REQUEST_ID] end |