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 --- 1 file changed, 3 deletions(-) (limited to 'actionpack/lib/action_controller/deprecated') 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. " << -- cgit v1.2.3 From 68b76a38eb83db8515336ec2e7fd8191798386be Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 18 Jan 2010 09:49:05 -0600 Subject: Cleanup deprecation notices. --- actionpack/lib/action_controller/deprecated/dispatcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/deprecated') diff --git a/actionpack/lib/action_controller/deprecated/dispatcher.rb b/actionpack/lib/action_controller/deprecated/dispatcher.rb index 1a70d2ee4d..8c21e375dd 100644 --- a/actionpack/lib/action_controller/deprecated/dispatcher.rb +++ b/actionpack/lib/action_controller/deprecated/dispatcher.rb @@ -15,7 +15,7 @@ module ActionController def to_prepare(*args, &block) ActiveSupport::Deprecation.warn "ActionController::Dispatcher.to_prepare is deprecated. " << - "Please use ActionDispatch::Callbacks.to_prepare instead.", caller + "Please use config.to_prepare instead", caller ActionDispatch::Callbacks.after(*args, &block) end -- cgit v1.2.3