From 4e1eaa289b8e410277a8dfb9a0c5139cafcbb23e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 8 Dec 2004 10:41:14 +0000 Subject: [PATCH] Only nuke the AbstractApplicationController if its available git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@79 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 49bdd093c4..680b03fb42 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -41,7 +41,7 @@ class Dispatcher ActiveRecord::Base.reset_associations_loaded if ActionController::Base.reload_dependencies - Object.send(:remove_const, "AbstractApplicationController") + Object.send(:remove_const, "AbstractApplicationController") if Object.const_defined?(:AbstractApplicationController) Object.send(:remove_const, controller_class_name(controller_name)) if Object.const_defined?(controller_class_name(controller_name)) end end