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

Changeset 7475

Show
Ignore:
Timestamp:
09/14/07 01:00:32 (1 year ago)
Author:
bitsweat
Message:

Missed Reloadable bits and pieces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/caching.rb

    r7427 r7475  
    613613        attr_accessor :controller 
    614614 
    615         # ActiveRecord::Observer will mark this class as reloadable even though it should not be. 
    616         # However, subclasses of ActionController::Caching::Sweeper should be Reloadable 
    617         include Reloadable::Deprecated 
    618          
    619615        def before(controller) 
    620616          self.controller = controller 
  • trunk/actionwebservice/lib/action_web_service/api.rb

    r6037 r7475  
    1515    # of use. 
    1616    class Base 
    17       # Action WebService API subclasses should be reloaded by the dispatcher in Rails 
    18       # when Dependencies.mechanism = :load. 
    19       include Reloadable::Deprecated 
    20        
    2117      # Whether to transform the public API method names into camel-cased names  
    2218      class_inheritable_option :inflect_names, true 
  • trunk/actionwebservice/lib/action_web_service/base.rb

    r4898 r7475  
    3232  #   end 
    3333  class Base 
    34     # Action WebService subclasses should be reloaded by the dispatcher in Rails 
    35     # when Dependencies.mechanism = :load. 
    36     include Reloadable::Deprecated 
    37  
    3834    # Whether to report exceptions back to the caller in the protocol's exception 
    3935    # format 
  • trunk/actionwebservice/lib/action_web_service/struct.rb

    r4728 r7475  
    2020  # signatures. 
    2121  class Struct 
    22     # Action WebService Struct subclasses should be reloaded by the dispatcher in Rails 
    23     # when Dependencies.mechanism = :load. 
    24     include Reloadable::Deprecated 
    25      
    2622    # If a Hash is given as argument to an ActionWebService::Struct constructor, 
    2723    # it can contain initial values for the structure member. 
  • trunk/railties/lib/dispatcher.rb

    r7425 r7475  
    5656 
    5757      Dependencies.clear 
    58       ActiveSupport::Deprecation.silence do # TODO: Remove after 1.2 
    59         Class.remove_class(*Reloadable.reloadable_classes) 
    60       end 
    61          
     58 
    6259      ActiveRecord::Base.clear_reloadable_connections! if defined?(ActiveRecord) 
    6360    end 
    64      
     61 
    6562    # Add a preparation callback. Preparation callbacks are run before every 
    6663    # request in development mode, and before the first request in production