aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/number_helper.rb')
-rw-r--r--activesupport/lib/active_support/number_helper.rb18
1 files changed, 11 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/number_helper.rb b/activesupport/lib/active_support/number_helper.rb
index 53f08efae5..2df1aada50 100644
--- a/activesupport/lib/active_support/number_helper.rb
+++ b/activesupport/lib/active_support/number_helper.rb
@@ -1,14 +1,18 @@
module ActiveSupport
module NumberHelper
+ extend ActiveSupport::Autoload
- autoload :NumberToRoundedConverter, "active_support/number_helper/number_to_rounded"
- autoload :NumberToDelimitedConverter, "active_support/number_helper/number_to_delimited"
- autoload :NumberToHumanConverter, "active_support/number_helper/number_to_human"
- autoload :NumberToHumanSizeConverter, "active_support/number_helper/number_to_human_size"
- autoload :NumberToPhoneConverter, "active_support/number_helper/number_to_phone"
- autoload :NumberToCurrencyConverter, "active_support/number_helper/number_to_currency"
- autoload :NumberToPercentageConverter, "active_support/number_helper/number_to_percentage"
+ eager_autoload do
+ autoload :NumberConverter
+ autoload :NumberToRoundedConverter
+ autoload :NumberToDelimitedConverter
+ autoload :NumberToHumanConverter
+ autoload :NumberToHumanSizeConverter
+ autoload :NumberToPhoneConverter
+ autoload :NumberToCurrencyConverter
+ autoload :NumberToPercentageConverter
+ end
extend self