rails/rails — pull request #12534 by vipulnsward (2013-10-14 18:23:12+00:00)
Title: Minor Refactoring to `NumberHelper#number_to_human`

Minor Refactoring to `NumberHelper#number_to_human`
* Use destructive `map` and `sort_by` to save extra object creation.
* Create `INVERTED_DECIMAL_UNITS.invert` constant instead of repeatedly doing `DECIMAL_UNITS.invert`