Backport #9347 to rails 3.2
Merge pull request #9804 from samsonasu/backport_number_to_human_fixes

Backport #9347 to rails 3.2