diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 7c681092fa1878477af46894cf3b0e73cde1a420..fc0a35864595e65a5b2fa4e9b1f002dac94ea790 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -666,7 +666,7 @@ def new_constants_in(*descs) return new_constants unless aborting - new_constants.each { |c| remove_constant(c) }.clear + new_constants.each { |c| remove_constant(c) } end end