From be80d460f7389d3b5db7248cc4fb726fa61db4e4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 25 Jan 2005 18:20:23 +0000 Subject: Moved subclass reloading responsibilities to Dependencies git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/dispatcher.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'railties') diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 84dff75024..566b031295 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -49,9 +49,7 @@ class Dispatcher private def reset_application Dependencies.clear - ActiveRecord::Base.remove_subclasses - ActiveRecord::Observer.remove_subclasses - ActionController::Base.remove_subclasses + Dependencies.remove_subclasses_for(ActiveRecord::Base, ActiveRecord::Observer, ActionController::Base) end def controller_path(controller_name, module_name = nil) -- cgit v1.2.3