the object itself isn't the IP, #to_s is the IP

This commit is contained in:
Andre Arko
2011-11-16 12:58:49 -10:00
parent 5621abd569
commit a9044d0117

View File

@@ -157,7 +157,7 @@ module ActionDispatch
# Originating IP address, usually set by the RemoteIp middleware.
def remote_ip
@remote_ip ||= @env["action_dispatch.remote_ip"] || ip
@remote_ip ||= (@env["action_dispatch.remote_ip"] || ip).to_s
end
# Returns the unique request id, which is based off either the X-Request-Id header that can