rails/rails — pull request #7980 by steveklabnik (2012-10-18 00:19:53+00:00)
Title: Restore original remote_ip algorithm.

We incorrectly were using the first address, rather than the last one.

Fixes #7979

/cc @indirect @gazay