Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit a9044d011790063e17159209f7bb1cbea255d4dd 1 parent 5621abd
André Arko indirect authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/http/request.rb
2  actionpack/lib/action_dispatch/http/request.rb
View
@@ -157,7 +157,7 @@ def ip
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.