rails/rails — pull request #16626 by adomokos (2014-08-22 04:09:45+00:00)
Title: Replacing an each with reduce

The functionality has not changed, but the code is more elegant by
using `reduce` instead of `each`.

This way no accumulator is declared, no explicit return is
needed.