rails/rails — pull request #3631 by indirect (2011-11-14 21:26:20+00:00)
Title: Force calculation of remote IP before using || operator

This is a fix for the bug that @jonleighton found in 317f4e2, where remote_ip would sometimes return nil when it ought to have returned "127.0.0.1" (or any other IP that matches the "trusted proxies to ignore" regex).