rails/rails — pull request #8222 by marcandre (2012-11-14 21:53:00+00:00)
Title: Avoid using Integer#/, as it is redefined by the 'mathn' stdlib

Avoid using `Integer#/`, as it is redefined by the 'mathn' stdlib to return rationals.

Otherwise the methods gives a strange result.

Note that `Integer#div` is more clear in its intent anyways.

I didn't use Integer#divmod because it is less efficient than a separate `div` and `%` (because of the intermediate array :-( )