rails/rails — pull request #12146 by mjc (2013-09-05 20:08:46+00:00)
Title: request.local? should return true/false, not nil or the index of the matched string

According to the [ruby docs]:

> If a match is found, the operator returns index of first match in string, otherwise it returns nil.

This commit changes the behavior of local? to return true or false, as the documentation states.

[ruby docs]: http://www.ruby-doc.org/core-2.0.0/Regexp.html#label-%3D%7E+operator)