class ActionController::Dispatcher

def before_dispatch(*args, &block)

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