diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 7c681092fa..fc0a358645 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -666,7 +666,7 @@ module ActiveSupport #:nodoc: return new_constants unless aborting - new_constants.each { |c| remove_constant(c) }.clear + new_constants.each { |c| remove_constant(c) } end end