Nuke the controllers after the dispatcher reload to avoid the superclass mismatch problem

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 612bb73f
......@@ -41,9 +41,9 @@ def self.dispatch(cgi = CGI.new, session_options = ActionController::CgiRequest:
ActionController::Base.process_with_exception(request, response, exception).out
ensure
if Dependencies.mechanism == :load
remove_class_hierarchy(controller_class(controller_name), ActionController::Base)
ActiveRecord::Base.reset_column_information_and_inheritable_attributes_for_all_subclasses
Dependencies.reload rescue nil # Ignore out of order reloading errors for Controllers
remove_class_hierarchy(controller_class(controller_name), ActionController::Base)
end
Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册