aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-23 15:39:28 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-23 15:39:28 -0800
commit0eca8111f26efe8f116a18cb86631d08f66e09d9 (patch)
tree40a605141430115c5c7937eaf5430e7af351aa43 /activesupport/lib
parent308876fca262736a5fa36dddb3990b27fbc6e64a (diff)
downloadrails-0eca8111f26efe8f116a18cb86631d08f66e09d9.tar.gz
rails-0eca8111f26efe8f116a18cb86631d08f66e09d9.tar.bz2
rails-0eca8111f26efe8f116a18cb86631d08f66e09d9.zip
Autoload ActiveSupport::SecureRandom and ::MessageVerifier
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support.rb8
1 files changed, 5 insertions, 3 deletions
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'