diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-07 14:48:16 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-07 14:48:16 +0000 |
commit | 703ac4c5ac68f68b48debd1bfc352cd687b2df30 (patch) | |
tree | 8606fe9c0f52beabf8b17decd79c39dcae9e0ad7 /activesupport/lib/active_support/dependencies.rb | |
parent | b640a647603f869eca5cbecce3dbc94cb47447ad (diff) | |
download | rails-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.rb | 2 |
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. |