diff options
author | deeeki <deeeki@gmail.com> | 2014-05-27 11:08:10 +0900 |
---|---|---|
committer | deeeki <deeeki@gmail.com> | 2014-05-27 12:48:33 +0900 |
commit | 1686c9a5f60fc64a7b79289d2fdb6efd74ee7d51 (patch) | |
tree | e02a85f8bddf3750c9802b7852dbcabb3f4dc386 | |
parent | 0bdfb4d166f816b104494f0d1adae832aed0421b (diff) | |
download | rails-1686c9a5f60fc64a7b79289d2fdb6efd74ee7d51.tar.gz rails-1686c9a5f60fc64a7b79289d2fdb6efd74ee7d51.tar.bz2 rails-1686c9a5f60fc64a7b79289d2fdb6efd74ee7d51.zip |
Remove `require 'active_support'` from individual modules
Let users require `active_support` before loading any ActiveSupport modules
http://guides.rubyonrails.org/active_support_core_extensions.html
-rw-r--r-- | activesupport/lib/active_support/i18n_railtie.rb | 1 | ||||
-rw-r--r-- | activesupport/lib/active_support/railtie.rb | 1 | ||||
-rw-r--r-- | activesupport/lib/active_support/time.rb | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/i18n_railtie.rb b/activesupport/lib/active_support/i18n_railtie.rb index 23cd6716e3..a45f009859 100644 --- a/activesupport/lib/active_support/i18n_railtie.rb +++ b/activesupport/lib/active_support/i18n_railtie.rb @@ -1,4 +1,3 @@ -require "active_support" require "active_support/file_update_checker" require "active_support/core_ext/array/wrap" diff --git a/activesupport/lib/active_support/railtie.rb b/activesupport/lib/active_support/railtie.rb index 133aa6a054..6d09ad4bd4 100644 --- a/activesupport/lib/active_support/railtie.rb +++ b/activesupport/lib/active_support/railtie.rb @@ -1,4 +1,3 @@ -require "active_support" require "active_support/i18n_railtie" module ActiveSupport diff --git a/activesupport/lib/active_support/time.rb b/activesupport/lib/active_support/time.rb index 92a593965e..ea2d3391bd 100644 --- a/activesupport/lib/active_support/time.rb +++ b/activesupport/lib/active_support/time.rb @@ -1,5 +1,3 @@ -require 'active_support' - module ActiveSupport autoload :Duration, 'active_support/duration' autoload :TimeWithZone, 'active_support/time_with_zone' |