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:
parent
368117c041
commit
703fecb4fc
5 changed files with 5 additions and 6 deletions
|
@ -58,5 +58,4 @@ end
|
||||||
autoload :MailHelper, 'action_mailer/mail_helper'
|
autoload :MailHelper, 'action_mailer/mail_helper'
|
||||||
autoload :TMail, 'action_mailer/vendor/tmail'
|
autoload :TMail, 'action_mailer/vendor/tmail'
|
||||||
|
|
||||||
# TODO: Don't explicitly load entire lib
|
ActionMailer.load_all! unless ENV['LAZY']
|
||||||
ActionMailer.load_all!
|
|
||||||
|
|
|
@ -101,4 +101,4 @@ autoload :Mime, 'action_controller/mime_type'
|
||||||
autoload :HTML, 'action_controller/vendor/html-scanner'
|
autoload :HTML, 'action_controller/vendor/html-scanner'
|
||||||
autoload :Rack, 'action_controller/vendor/rack'
|
autoload :Rack, 'action_controller/vendor/rack'
|
||||||
|
|
||||||
ActionController.load_all!
|
ActionController.load_all! unless ENV['LAZY']
|
||||||
|
|
|
@ -56,4 +56,4 @@ end
|
||||||
|
|
||||||
I18n.load_path << "#{File.dirname(__FILE__)}/action_view/locale/en.yml"
|
I18n.load_path << "#{File.dirname(__FILE__)}/action_view/locale/en.yml"
|
||||||
|
|
||||||
ActionView.load_all!
|
ActionView.load_all! unless ENV['LAZY']
|
||||||
|
|
|
@ -72,4 +72,4 @@ end
|
||||||
require 'active_record/i18n_interpolation_deprecation'
|
require 'active_record/i18n_interpolation_deprecation'
|
||||||
I18n.load_path << File.dirname(__FILE__) + '/active_record/locale/en.yml'
|
I18n.load_path << File.dirname(__FILE__) + '/active_record/locale/en.yml'
|
||||||
|
|
||||||
ActiveRecord.load_all!
|
ActiveRecord.load_all! unless ENV['LAZY']
|
||||||
|
|
|
@ -56,4 +56,4 @@ require 'active_support/core_ext'
|
||||||
|
|
||||||
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"
|
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"
|
||||||
|
|
||||||
ActiveSupport.load_all!
|
ActiveSupport.load_all! unless ENV['LAZY']
|
||||||
|
|
Loading…
Reference in a new issue