1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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