1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "Don't unhook autoloading in production"

This reverts commit a8bf12979e.
This commit is contained in:
Aaron Patterson 2015-02-16 15:03:37 -08:00
parent 05b6e5d8b7
commit a71350cae0

View file

@ -108,6 +108,13 @@ module Rails
ActionDispatch::Reloader.to_cleanup(&callback)
end
end
# Disable dependency loading during request cycle
initializer :disable_dependency_loading do
if config.eager_load && config.cache_classes
ActiveSupport::Dependencies.unhook!
end
end
end
end
end