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:
parent
05b6e5d8b7
commit
a71350cae0
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue