rails/rails — pull request #5980 by gazay (2012-04-25 11:05:24+00:00)
Title: Remote ip logic and validation.

I did this couple times already in pull requests #1758 and #2035 for earlier rails version. I still think that logic in remote_ip is not ideal and don't cover some important things.

/cc @jeremy, @sikachu