mirror of https://github.com/rails/rails
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:
parent
554597d657
commit
4e1eaa289b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue