plataformatec/devise — pull request #1976 by benknowles (2012-07-12 18:45:54+00:00)
Title: Patch for Trackable IP

This commit reverts 60822641cb9 which incorrectly switched to using the gateway IP. At the time Rails' remote_ip method was broken and this was simply a workaround.

I'm using Thin daemons behind Nginx and my "last_sign_in_ip" and "current_sign_in_ip" were always 127.0.0.1. With this patch I'm seeing the correct IP addresses.