commit: 39e7a763ff242faf3bfe9a666ac7b6f455c0c080
parent: e95bdec7c5da63930fc2e08e67e4358fec19296d
Author: nullkal <nullkal@nil.nu>
Date: Wed, 30 Aug 2017 17:24:30 +0900
Use request.remote_ip instead of request.ip (#4744)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)