aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-07 14:48:16 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-07 14:48:16 +0000
commit703ac4c5ac68f68b48debd1bfc352cd687b2df30 (patch)
tree8606fe9c0f52beabf8b17decd79c39dcae9e0ad7 /activesupport/lib/active_support/dependencies.rb
parentb640a647603f869eca5cbecce3dbc94cb47447ad (diff)
downloadrails-703ac4c5ac68f68b48debd1bfc352cd687b2df30.tar.gz
rails-703ac4c5ac68f68b48debd1bfc352cd687b2df30.tar.bz2
rails-703ac4c5ac68f68b48debd1bfc352cd687b2df30.zip
Added more efficient implementation of the development mode reset of classes #1638 [Chris McGrath]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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.