Only nuke the AbstractApplicationController if its available

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@79 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-12-08 10:41:14 +00:00
parent 554597d657
commit 4e1eaa289b
1 changed files with 1 additions and 1 deletions

View File

@ -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