Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 323

Show
Ignore:
Timestamp:
01/02/05 23:42:21 (4 years ago)
Author:
david
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/dispatcher.rb

    r317 r323  
    4242    ensure 
    4343      if Dependencies.mechanism == :load 
    44         remove_class_hierarchy(controller_class(controller_name), ActionController::Base) 
    4544        ActiveRecord::Base.reset_column_information_and_inheritable_attributes_for_all_subclasses 
    4645        Dependencies.reload rescue nil # Ignore out of order reloading errors for Controllers 
     46        remove_class_hierarchy(controller_class(controller_name), ActionController::Base) 
    4747      end 
    4848