aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-11-24 11:37:57 -0600
committerJoshua Peek <josh@joshpeek.com>2008-11-24 11:37:57 -0600
commit703fecb4fc81c3a975a53c9c4534f40193bd1ab9 (patch)
tree4351e2ad2c37fcca29f31f1feb3eba98b45d3a95 /activerecord
parent368117c0411a636a0cbfdc33fbf679c3e9233da7 (diff)
downloadrails-703fecb4fc81c3a975a53c9c4534f40193bd1ab9.tar.gz
rails-703fecb4fc81c3a975a53c9c4534f40193bd1ab9.tar.bz2
rails-703fecb4fc81c3a975a53c9c4534f40193bd1ab9.zip
Add LAZY env flag for testing autoload/lazy load feature
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record.rb b/activerecord/lib/active_record.rb
index 584349659e..612e2313ae 100644
--- a/activerecord/lib/active_record.rb
+++ b/activerecord/lib/active_record.rb
@@ -72,4 +72,4 @@ end
require 'active_record/i18n_interpolation_deprecation'
I18n.load_path << File.dirname(__FILE__) + '/active_record/locale/en.yml'
-ActiveRecord.load_all!
+ActiveRecord.load_all! unless ENV['LAZY']