diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-10-14 23:52:06 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-10-14 23:52:06 +0530 |
commit | 67c2525d59f8136c648bc59c5c39dbab77713fe2 (patch) | |
tree | f51ac945aea4fe54c9d2ceb2694a5e2d3246234b /tasks | |
parent | 42a99dbaba3f9968f800d24dfdb60c51bee091b1 (diff) | |
download | rails-67c2525d59f8136c648bc59c5c39dbab77713fe2.tar.gz rails-67c2525d59f8136c648bc59c5c39dbab77713fe2.tar.bz2 rails-67c2525d59f8136c648bc59c5c39dbab77713fe2.zip |
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`
Diffstat (limited to 'tasks')
0 files changed, 0 insertions, 0 deletions