Sha256: 5e839a466eb8eafb6289b31fbcaba9ae44e865350ee96ad22a6dbf0eb65c2f5e

Contents?: true

Size: 1.05 KB

Versions: 43

Compression:

Stored size: 1.05 KB

Contents

module ActionController
  class Dispatcher
    class << self
      def before_dispatch(*args, &block)
        ActiveSupport::Deprecation.warn "ActionController::Dispatcher.before_dispatch is deprecated. " <<
          "Please use ActionDispatch::Callbacks.before instead.", caller
        ActionDispatch::Callbacks.before(*args, &block)
      end

      def after_dispatch(*args, &block)
        ActiveSupport::Deprecation.warn "ActionController::Dispatcher.after_dispatch is deprecated. " <<
          "Please use ActionDispatch::Callbacks.after instead.", caller
        ActionDispatch::Callbacks.after(*args, &block)
      end

      def to_prepare(*args, &block)
        ActiveSupport::Deprecation.warn "ActionController::Dispatcher.to_prepare is deprecated. " <<
          "Please use config.to_prepare instead", caller
        ActionDispatch::Callbacks.after(*args, &block)
      end

      def new
        ActiveSupport::Deprecation.warn "ActionController::Dispatcher.new is deprecated, use Rails.application instead."
        Rails.application
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
actionpack-3.0.20 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.19 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.18 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.17 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.16 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.15 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.14 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.13 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.13.rc1 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.12 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.12.rc1 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.11 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.10 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.10.rc1 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.9 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.9.rc5 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.9.rc4 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.9.rc3 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.9.rc1 lib/action_controller/deprecated/dispatcher.rb
actionpack-3.0.8 lib/action_controller/deprecated/dispatcher.rb