From 61ada28ed3cdc42efa6f9714e909231959b88c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 17 Jan 2010 11:44:04 +0100 Subject: Get rid of prepare_each_request, since now it's a middleware initialization parameter. --- actionpack/lib/action_controller/deprecated/dispatcher.rb | 3 --- actionpack/lib/action_controller/railtie.rb | 1 - 2 files changed, 4 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/deprecated/dispatcher.rb b/actionpack/lib/action_controller/deprecated/dispatcher.rb index 3da3c8ce7d..1a70d2ee4d 100644 --- a/actionpack/lib/action_controller/deprecated/dispatcher.rb +++ b/actionpack/lib/action_controller/deprecated/dispatcher.rb @@ -1,8 +1,5 @@ module ActionController class Dispatcher - cattr_accessor :prepare_each_request - self.prepare_each_request = false - class << self def before_dispatch(*args, &block) ActiveSupport::Deprecation.warn "ActionController::Dispatcher.before_dispatch is deprecated. " << diff --git a/actionpack/lib/action_controller/railtie.rb b/actionpack/lib/action_controller/railtie.rb index f070b13dbf..d93155e7a5 100644 --- a/actionpack/lib/action_controller/railtie.rb +++ b/actionpack/lib/action_controller/railtie.rb @@ -73,7 +73,6 @@ module ActionController # TODO: This used to say unless defined?(Dispatcher). Find out why and fix. # Notice that at this point, ActionDispatch::Callbacks were already loaded. require 'rails/dispatcher' - ActionController::Dispatcher.prepare_each_request = true unless app.config.cache_classes unless app.config.cache_classes # Setup dev mode route reloading -- cgit v1.2.3