public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/JackDanger/rails.git
Search Repo:
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
dhh (author)
Sun Jan 02 15:42:21 -0800 2005
commit  8320d5cb4c5024679e5445b70eb66b62861fa1db
tree    b3b70368a890c40105bc40af4a0fe5f5f0141a62
parent  612bb73fece343bfda765dda91eabb1d2a6b310c
...
41
42
43
44
45
46
 
47
48
49
...
41
42
43
 
44
45
46
47
48
49
0
@@ -41,9 +41,9 @@ class Dispatcher
0
       ActionController::Base.process_with_exception(request, response, exception).out
0
     ensure
0
       if Dependencies.mechanism == :load
0
- remove_class_hierarchy(controller_class(controller_name), ActionController::Base)
0
         ActiveRecord::Base.reset_column_information_and_inheritable_attributes_for_all_subclasses
0
         Dependencies.reload rescue nil # Ignore out of order reloading errors for Controllers
0
+ remove_class_hierarchy(controller_class(controller_name), ActionController::Base)
0
       end
0
       
0
       Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT)

Comments

    No one has commented yet.