diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-02 22:12:36 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-02 22:12:36 -0200 |
commit | d3b93e403b3d0c11607e037770ad91c062b2e897 (patch) | |
tree | 1fe5f112d215cf72887835b6190f50400767e4dc /activesupport/lib/active_support.rb | |
parent | fc73ebf332c4dbd36dcf7e7a39a0e120b7680bd2 (diff) | |
download | rails-d3b93e403b3d0c11607e037770ad91c062b2e897.tar.gz rails-d3b93e403b3d0c11607e037770ad91c062b2e897.tar.bz2 rails-d3b93e403b3d0c11607e037770ad91c062b2e897.zip |
Make load of NumberHelper thread safe
Diffstat (limited to 'activesupport/lib/active_support.rb')
-rw-r--r-- | activesupport/lib/active_support.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb index 5e1fe9e556..a40c6b559c 100644 --- a/activesupport/lib/active_support.rb +++ b/activesupport/lib/active_support.rb @@ -52,6 +52,7 @@ module ActiveSupport autoload :MessageEncryptor autoload :MessageVerifier autoload :Multibyte + autoload :NumberHelper autoload :OptionMerger autoload :OrderedHash autoload :OrderedOptions @@ -63,6 +64,12 @@ module ActiveSupport autoload :Rescuable autoload :SafeBuffer, "active_support/core_ext/string/output_safety" autoload :TestCase + + def self.eager_load! + super + + NumberHelper.eager_load! + end end autoload :I18n, "active_support/i18n" |