1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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