From 9bb0f1e08a0c433d7581aecb1c5764c5fd540fa9 Mon Sep 17 00:00:00 2001 From: Akshay Vishnoi Date: Tue, 10 Jun 2014 22:16:13 +0530 Subject: [ci skip] Correct output and use valid options of number helpers --- actionview/lib/action_view/helpers/number_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/helpers/number_helper.rb b/actionview/lib/action_view/helpers/number_helper.rb index 7157a95146..879fc7dbf0 100644 --- a/actionview/lib/action_view/helpers/number_helper.rb +++ b/actionview/lib/action_view/helpers/number_helper.rb @@ -272,7 +272,7 @@ module ActionView # :strip_insignificant_zeros 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 = {}) delegate_number_helper_method(:number_to_human_size, number, options) @@ -346,7 +346,7 @@ module ActionView # Non-significant zeros after the decimal separator are stripped # out by default (set :strip_insignificant_zeros 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 -- cgit v1.2.3