diff options
author | amitkumarsuroliya <amitkumarsuroliya@gmail.com> | 2015-10-11 07:41:15 +0530 |
---|---|---|
committer | amitkumarsuroliya <amitkumarsuroliya@gmail.com> | 2015-10-11 07:41:15 +0530 |
commit | 05c610df9a2d361a1eae92ffc624f1e5fda474a3 (patch) | |
tree | 6cfc8d843aa957e7b03ba53e20533ff8096433d8 /activesupport | |
parent | aa37991e436fb4284a16c324ab5115d73784ff38 (diff) | |
download | rails-05c610df9a2d361a1eae92ffc624f1e5fda474a3.tar.gz rails-05c610df9a2d361a1eae92ffc624f1e5fda474a3.tar.bz2 rails-05c610df9a2d361a1eae92ffc624f1e5fda474a3.zip |
Fixed `ActiveSupport::NumberHelper` Outputs [ci skip]
Diffstat (limited to 'activesupport')
-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 504f96961a..248521e677 100644 --- a/activesupport/lib/active_support/number_helper.rb +++ b/activesupport/lib/active_support/number_helper.rb @@ -115,8 +115,8 @@ module ActiveSupport # number_to_percentage(100, precision: 0) # => 100% # number_to_percentage(1000, delimiter: '.', separator: ',') # => 1.000,000% # number_to_percentage(302.24398923423, precision: 5) # => 302.24399% - # number_to_percentage(1000, locale: :fr) # => 1 000,000% - # number_to_percentage:(1000, precision: nil) # => 1000% + # number_to_percentage(1000, locale: :fr) # => 1000,000% + # number_to_percentage(1000, precision: nil) # => 1000% # number_to_percentage('98a') # => 98a% # number_to_percentage(100, format: '%n %') # => 100.000 % def number_to_percentage(number, options = {}) |