diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-02 22:20:35 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-02 22:32:21 -0200 |
commit | 5c04ca87d86074e84e4ff51bcf08b113f464558b (patch) | |
tree | a998ed0594a9a63047661db3316863cfcbcb2ff9 /activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb | |
parent | d3b93e403b3d0c11607e037770ad91c062b2e897 (diff) | |
download | rails-5c04ca87d86074e84e4ff51bcf08b113f464558b.tar.gz rails-5c04ca87d86074e84e4ff51bcf08b113f464558b.tar.bz2 rails-5c04ca87d86074e84e4ff51bcf08b113f464558b.zip |
Make execute priave API
Diffstat (limited to 'activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb')
-rw-r--r-- | activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb b/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb index 6a0f6e70b7..467ad030b5 100644 --- a/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb +++ b/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb @@ -19,7 +19,7 @@ module ActiveSupport number_to_format = @number.to_i.to_s else human_size = @number / (base ** exponent) - number_to_format = NumberToRoundedConverter.new(human_size, options).execute + number_to_format = NumberToRoundedConverter.convert(human_size, options) end conversion_format.gsub(/%n/, number_to_format).gsub(/%u/, unit) end |