class ActionDispatch::Request

def remote_ip

middleware.
Returns the IP address of client as a `String`, usually set by the RemoteIp
def remote_ip
  @remote_ip ||= (get_header("action_dispatch.remote_ip") || ip).to_s
end