aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-02-01 19:42:14 +1030
committerMatthew Draper <matthew@trebex.net>2016-02-02 03:21:02 +1030
commit92203edbe6546f84921b6ccb6e79c3a01857a8b3 (patch)
treedbc8f21ff50d02def39d5c00f2f769d6fc96d251
parent8a51f6fbbf720db9edce3e1c973a9f8c5ee7931c (diff)
downloadrails-92203edbe6546f84921b6ccb6e79c3a01857a8b3.tar.gz
rails-92203edbe6546f84921b6ccb6e79c3a01857a8b3.tar.bz2
rails-92203edbe6546f84921b6ccb6e79c3a01857a8b3.zip
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.
-rw-r--r--railties/lib/rails/application/finisher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb
index 404e3c3e23..411cdbad19 100644
--- a/railties/lib/rails/application/finisher.rb
+++ b/railties/lib/rails/application/finisher.rb
@@ -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