Flowdock
method

define_dispatcher_callbacks

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActionController::Dispatcher

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

define_dispatcher_callbacks(cache_classes) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/dispatcher.rb, line 8
      def define_dispatcher_callbacks(cache_classes)
        @@cache_classes = cache_classes
        unless cache_classes
          ActionView::Helpers::AssetTagHelper.cache_asset_timestamps = false
        end

        if defined?(ActiveRecord)
          to_prepare(:activerecord_instantiate_observers) { ActiveRecord::Base.instantiate_observers }
        end

        after_dispatch :flush_logger if Base.logger && Base.logger.respond_to?(:flush)

        to_prepare do
          I18n.reload!
        end
      end
Register or log in to add new notes.