aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper/number_to_human_converter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/number_helper/number_to_human_converter.rb')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_human_converter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_to_human_converter.rb b/activesupport/lib/active_support/number_helper/number_to_human_converter.rb
index 3cdf6ff9f8..0c1a7250e3 100644
--- a/activesupport/lib/active_support/number_helper/number_to_human_converter.rb
+++ b/activesupport/lib/active_support/number_helper/number_to_human_converter.rb
@@ -23,7 +23,7 @@ module ActiveSupport
unit = determine_unit(units, exponent)
- rounded_number = NumberToRoundedConverter.new(@number, options).execute
+ rounded_number = NumberToRoundedConverter.convert(@number, options)
format.gsub(/%n/, rounded_number).gsub(/%u/, unit).strip
end