1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add LAZY env flag for testing autoload/lazy load feature

This commit is contained in:
Joshua Peek 2008-11-24 11:37:57 -06:00
parent 368117c041
commit 703fecb4fc
5 changed files with 5 additions and 6 deletions

View file

@ -58,5 +58,4 @@ end
autoload :MailHelper, 'action_mailer/mail_helper'
autoload :TMail, 'action_mailer/vendor/tmail'
# TODO: Don't explicitly load entire lib
ActionMailer.load_all!
ActionMailer.load_all! unless ENV['LAZY']

View file

@ -101,4 +101,4 @@ autoload :Mime, 'action_controller/mime_type'
autoload :HTML, 'action_controller/vendor/html-scanner'
autoload :Rack, 'action_controller/vendor/rack'
ActionController.load_all!
ActionController.load_all! unless ENV['LAZY']

View file

@ -56,4 +56,4 @@ end
I18n.load_path << "#{File.dirname(__FILE__)}/action_view/locale/en.yml"
ActionView.load_all!
ActionView.load_all! unless ENV['LAZY']

View file

@ -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']

View file

@ -56,4 +56,4 @@ require 'active_support/core_ext'
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"
ActiveSupport.load_all!
ActiveSupport.load_all! unless ENV['LAZY']