diff options
author | John Firebaugh <john_firebaugh@us.ibm.com> | 2010-12-19 16:00:01 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-12-20 12:43:02 +0100 |
commit | e683ab7c390f26e110387822c7ffb5ac6aafebca (patch) | |
tree | 850338c758b99ff46ecd00e5c0780248a8c2e7b6 /railties/lib/rails | |
parent | 435bccda930e4dde3d0fafca958e1c8330b4c3ca (diff) | |
download | rails-e683ab7c390f26e110387822c7ffb5ac6aafebca.tar.gz rails-e683ab7c390f26e110387822c7ffb5ac6aafebca.tar.bz2 rails-e683ab7c390f26e110387822c7ffb5ac6aafebca.zip |
Use AD::Reloader.to_cleanup for reloading [#2873 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application/bootstrap.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb index 213aa0768a..9c9d85eed6 100644 --- a/railties/lib/rails/application/bootstrap.rb +++ b/railties/lib/rails/application/bootstrap.rb @@ -51,11 +51,9 @@ module Rails end initializer :set_clear_dependencies_hook do - unless config.cache_classes - ActionDispatch::Callbacks.after do - ActiveSupport::DescendantsTracker.clear - ActiveSupport::Dependencies.clear - end + ActionDispatch::Reloader.to_cleanup do + ActiveSupport::DescendantsTracker.clear + ActiveSupport::Dependencies.clear end end |