提交 58ed6993 编写于 作者: R Rafael Mendonça França

Merge pull request #20305 from vngrs/missing_docs_and_no_docs_for_action_dispatch_request

Add missing nodocs and docs for ActionDispatch::Request [ci skip]
......@@ -235,11 +235,13 @@ def xml_http_request?
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 @@ def request_id
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册