Trackable should use the remote IP address, not the gateway's

This commit is contained in:
Ben Knowles
2012-07-12 13:34:31 -05:00
parent 8463c6dce4
commit a1411c885f

View File

@@ -20,7 +20,7 @@ module Devise
self.last_sign_in_at = old_current || new_current
self.current_sign_in_at = new_current
old_current, new_current = self.current_sign_in_ip, request.ip
old_current, new_current = self.current_sign_in_ip, request.remote_ip
self.last_sign_in_ip = old_current || new_current
self.current_sign_in_ip = new_current