aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/dependencies.rb')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index bb46087582..c37e868b83 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -39,7 +39,7 @@ module Dependencies #:nodoc:
end
def remove_subclasses_for(*classes)
- classes.each { |klass| klass.remove_subclasses }
+ Object.remove_subclasses_of(*classes)
end
# LoadingModules implement namespace-safe dynamic loading.