diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-19 17:51:29 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-19 17:51:44 +0200 |
commit | 312f43324159fbcd8749cd331ed7d6500a714a83 (patch) | |
tree | 750659e6006e58f2941c09ffdd3011e904c63b26 /railties/lib/rails/application | |
parent | d430db9fd407fd6aee25ca13538d8988dc7ee297 (diff) | |
download | rails-312f43324159fbcd8749cd331ed7d6500a714a83.tar.gz rails-312f43324159fbcd8749cd331ed7d6500a714a83.tar.bz2 rails-312f43324159fbcd8749cd331ed7d6500a714a83.zip |
Clear DescendantsTracker on each request.
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/bootstrap.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb index 0a435f0f36..44e26b5713 100644 --- a/railties/lib/rails/application/bootstrap.rb +++ b/railties/lib/rails/application/bootstrap.rb @@ -1,4 +1,5 @@ require "active_support/notifications" +require "active_support/descendants_tracker" module Rails class Application @@ -55,6 +56,7 @@ module Rails initializer :set_clear_dependencies_hook do unless config.cache_classes ActionDispatch::Callbacks.after do + ActiveSupport::DescendantsTracker.clear ActiveSupport::Dependencies.clear end end |