Add config.preload_frameworks to load all frameworks at startup. Default to false so Rails autoloads itself as it's used.

This commit is contained in:
Jeremy Kemper
2008-11-24 18:43:04 -08:00
parent d01f75b1f0
commit 104f3a5776
7 changed files with 25 additions and 10 deletions

View File

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

View File

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