aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-08-01 20:54:22 +0200
committerJosé Valim <jose.valim@gmail.com>2012-08-21 14:47:19 -0300
commit2801786e1a51b7cf7d7c3fd72b5fc9974f83f435 (patch)
tree2bc2efda7c5d724ba4d85373879e75d9709355df /actionpack/lib/action_dispatch.rb
parenta1687e48cba2f0447f02248939cde05502562e87 (diff)
downloadrails-2801786e1a51b7cf7d7c3fd72b5fc9974f83f435.tar.gz
rails-2801786e1a51b7cf7d7c3fd72b5fc9974f83f435.tar.bz2
rails-2801786e1a51b7cf7d7c3fd72b5fc9974f83f435.zip
Get rid of config.preload_frameworks in favor of config.eager_load_namespaces
The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly.
Diffstat (limited to 'actionpack/lib/action_dispatch.rb')
-rw-r--r--actionpack/lib/action_dispatch.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch.rb b/actionpack/lib/action_dispatch.rb
index b382997052..57b4678add 100644
--- a/actionpack/lib/action_dispatch.rb
+++ b/actionpack/lib/action_dispatch.rb
@@ -38,9 +38,11 @@ module ActionDispatch
class IllegalStateError < StandardError
end
- autoload_under 'http' do
- autoload :Request
- autoload :Response
+ eager_autoload do
+ autoload_under 'http' do
+ autoload :Request
+ autoload :Response
+ end
end
autoload_under 'middleware' do