rails/rails — pull request #6639 by fredv (2012-06-05 17:27:28+00:00)
Title: predicate xhr? on ActionDispatch::Request returns Boolean again

Returning either nil or 0 is rather confusing for a predicate and changes behaviour of this method. Test is adapted accordingly.