diff options
author | Juanjo Bazán <jjbazan@gmail.com> | 2014-05-28 12:40:42 +0200 |
---|---|---|
committer | Juanjo Bazán <jjbazan@gmail.com> | 2014-05-31 20:07:47 +0200 |
commit | 60062cf39a6079cf6a47a754f4b5fc6c474b9b15 (patch) | |
tree | 80d7dfb54a9b71c2101442716e27897f8a5b4b4f /actionview/test/fixtures/scope | |
parent | 4d83c2a27fb5bea5ccba468aaad4a9038a83b2b8 (diff) | |
download | rails-60062cf39a6079cf6a47a754f4b5fc6c474b9b15.tar.gz rails-60062cf39a6079cf6a47a754f4b5fc6c474b9b15.tar.bz2 rails-60062cf39a6079cf6a47a754f4b5fc6c474b9b15.zip |
Fix AS::NumberHelper results with rationals
:precision was incorrectly being applied to Rationals
before:
ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2
=> "3.3"
after:
ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2
=> "3.33"
Diffstat (limited to 'actionview/test/fixtures/scope')
0 files changed, 0 insertions, 0 deletions