aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/dependencies/zeitwerk_integration.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb
index f16a9f7e57..d5dc7c2ff4 100644
--- a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb
+++ b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb
@@ -9,11 +9,9 @@ module ActiveSupport
module Decorations
def clear
Dependencies.unload_interlock do
- begin
- Rails.autoloaders.main.reload
- rescue Zeitwerk::ReloadingDisabledError
- raise "reloading is disabled because config.cache_classes is true"
- end
+ Rails.autoloaders.main.reload
+ rescue Zeitwerk::ReloadingDisabledError
+ raise "reloading is disabled because config.cache_classes is true"
end
end