From 0eca8111f26efe8f116a18cb86631d08f66e09d9 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 23 Nov 2008 15:39:28 -0800 Subject: Autoload ActiveSupport::SecureRandom and ::MessageVerifier --- activesupport/lib/active_support.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb index 7337b55a21..11bd87af0d 100644 --- a/activesupport/lib/active_support.rb +++ b/activesupport/lib/active_support.rb @@ -55,9 +55,11 @@ require 'active_support/base64' require 'active_support/time_with_zone' -require 'active_support/secure_random' -require 'active_support/message_verifier' - 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' -- cgit v1.2.3