From b3739fca2c185831c97efdd9fdcaa23476863539 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 2 Jan 2005 23:42:21 +0000 Subject: [PATCH] Nuke the controllers after the dispatcher reload to avoid the superclass mismatch problem git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/dispatcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 3298611227..7ae2affb45 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -41,9 +41,9 @@ class Dispatcher ActionController::Base.process_with_exception(request, response, exception).out ensure if Dependencies.mechanism == :load - remove_class_hierarchy(controller_class(controller_name), ActionController::Base) ActiveRecord::Base.reset_column_information_and_inheritable_attributes_for_all_subclasses Dependencies.reload rescue nil # Ignore out of order reloading errors for Controllers + remove_class_hierarchy(controller_class(controller_name), ActionController::Base) end Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT)