mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Always obtain the lock and do the unload
We mostly care about `reload_classes_only_on_change=true`, because that's the default... and there, we definitely need to wait for the lock when necessary.
This commit is contained in:
parent
8a51f6fbbf
commit
92203edbe6
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ module Rails
|
|||
# added in the hook are taken into account.
|
||||
initializer :set_clear_dependencies_hook, group: :all do
|
||||
callback = lambda do
|
||||
ActiveSupport::Dependencies.interlock.attempt_unloading do
|
||||
ActiveSupport::Dependencies.interlock.unloading do
|
||||
ActiveSupport::DescendantsTracker.clear
|
||||
ActiveSupport::Dependencies.clear
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue