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:
parent
554597d657
commit
4e1eaa289b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue