diff options
author | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-06-10 12:07:34 -0500 |
---|---|---|
committer | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-06-10 12:07:34 -0500 |
commit | 3681e1ac2c5448b9826f2e3c9b6508c50d2b4f17 (patch) | |
tree | 156c6393bf3a21ae2e3dba9fe59ee3d93dff901d /activesupport/lib/active_support | |
parent | 4d209b5daf0eba4c8d008e9d009d0576e04f40d1 (diff) | |
parent | 9bb0f1e08a0c433d7581aecb1c5764c5fd540fa9 (diff) | |
download | rails-3681e1ac2c5448b9826f2e3c9b6508c50d2b4f17.tar.gz rails-3681e1ac2c5448b9826f2e3c9b6508c50d2b4f17.tar.bz2 rails-3681e1ac2c5448b9826f2e3c9b6508c50d2b4f17.zip |
Merge pull request #15611 from akshay-vishnoi/doc_changes
[ci skip] Correct output and use valid options of number helpers
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/number_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/number_helper.rb b/activesupport/lib/active_support/number_helper.rb index b169e3af01..7ddc7e505a 100644 --- a/activesupport/lib/active_support/number_helper.rb +++ b/activesupport/lib/active_support/number_helper.rb @@ -236,7 +236,7 @@ module ActiveSupport # Non-significant zeros after the fractional separator are stripped out by # default (set <tt>:strip_insignificant_zeros</tt> to +false+ to change that): # - # number_to_human_size(1234567890123, precision: 5) # => "1.1229 TB" + # number_to_human_size(1234567890123, precision: 5) # => "1.1228 TB" # number_to_human_size(524288000, precision: 5) # => "500 MB" def number_to_human_size(number, options = {}) NumberToHumanSizeConverter.convert(number, options) @@ -309,7 +309,7 @@ module ActiveSupport # out by default (set <tt>:strip_insignificant_zeros</tt> to # +false+ to change that): # - # number_to_human(12345012345, significant_digits: 6) # => "12.345 Billion" + # number_to_human(12345012345, significant: false) # => "12.345 Billion" # number_to_human(500000000, precision: 5) # => "500 Million" # # ==== Custom Unit Quantifiers |