From 39e7a763ff242faf3bfe9a666ac7b6f455c0c080 Mon Sep 17 00:00:00 2001 From: nullkal Date: Wed, 30 Aug 2017 17:24:30 +0900 Subject: [PATCH] Use request.remote_ip instead of request.ip (#4744) --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 02b1b26ee2..5e548c1efb 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -124,7 +124,7 @@ class User < ApplicationRecord def activate_session(request) session_activations.activate(session_id: SecureRandom.hex, user_agent: request.user_agent, - ip: request.ip).session_id + ip: request.remote_ip).session_id end def exclusive_session(id)