method

before_dispatch

rails latest stable - Class: ActionController::Dispatcher

Method deprecated or moved

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

before_dispatch(*args, &block)
public

No documentation available.

# File actionpack/lib/action_controller/deprecated/dispatcher.rb, line 4
      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