aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-23 16:11:32 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-23 16:11:32 -0800
commit6c7463deaba57ab9e7d70810bfd6bcde898b934f (patch)
tree09de3e2b926fd17cdc9bf89b55a02587cb74c741 /activesupport/lib/active_support.rb
parente44076f2c37427de1cecb6b4aab8edb049e74e67 (diff)
downloadrails-6c7463deaba57ab9e7d70810bfd6bcde898b934f.tar.gz
rails-6c7463deaba57ab9e7d70810bfd6bcde898b934f.tar.bz2
rails-6c7463deaba57ab9e7d70810bfd6bcde898b934f.zip
Autoload ActiveSupport::Duration, Gzip, OptionMerger, OrderedHash, OrderedOptions, StringInquirer, TimeWithZone, and TimeZone also
Diffstat (limited to 'activesupport/lib/active_support.rb')
-rw-r--r--activesupport/lib/active_support.rb31
1 files changed, 14 insertions, 17 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb
index 11bd87af0d..06bb5690d3 100644
--- a/activesupport/lib/active_support.rb
+++ b/activesupport/lib/active_support.rb
@@ -21,6 +21,19 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
+module ActiveSupport
+ autoload :Duration, 'active_support/duration'
+ autoload :Gzip, 'active_support/gzip'
+ autoload :MessageVerifier, 'active_support/message_verifier'
+ autoload :OptionMerger, 'active_support/option_merger'
+ autoload :OrderedHash, 'active_support/ordered_hash'
+ autoload :OrderedOptions, 'active_support/ordered_options'
+ autoload :SecureRandom, 'active_support/secure_random'
+ autoload :StringInquirer, 'active_support/string_inquirer'
+ autoload :TimeWithZone, 'active_support/time_with_zone'
+ autoload :TimeZone, 'active_support/values/time_zone'
+end
+
require 'active_support/vendor'
require 'active_support/basic_object'
require 'active_support/inflector'
@@ -31,21 +44,12 @@ require 'active_support/core_ext'
require 'active_support/buffered_logger'
require 'active_support/backtrace_cleaner'
-require 'active_support/gzip'
require 'active_support/cache'
require 'active_support/dependencies'
require 'active_support/deprecation'
-require 'active_support/ordered_hash'
-require 'active_support/ordered_options'
-require 'active_support/option_merger'
-
require 'active_support/memoizable'
-require 'active_support/string_inquirer'
-
-require 'active_support/values/time_zone'
-require 'active_support/duration'
require 'active_support/json'
@@ -53,13 +57,6 @@ require 'active_support/multibyte'
require 'active_support/base64'
-require 'active_support/time_with_zone'
-
require 'active_support/rescuable'
-module ActiveSupport
- autoload :MessageVerifier, 'active_support/message_verifier'
- autoload :SecureRandom, 'active_support/secure_random'
-end
-
-I18n.load_path << File.dirname(__FILE__) + '/active_support/locale/en.yml'
+I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"