aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-02 22:20:35 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-02 22:32:21 -0200
commit5c04ca87d86074e84e4ff51bcf08b113f464558b (patch)
treea998ed0594a9a63047661db3316863cfcbcb2ff9 /activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
parentd3b93e403b3d0c11607e037770ad91c062b2e897 (diff)
downloadrails-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.rb2
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