From cb6d94cc577370b49aac4ad7d2718e78d350a797 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 13 Mar 2007 03:58:22 +0000 Subject: Deprecation: remove deprecated redirect methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller.rb | 1 - .../lib/action_controller/deprecated_redirects.rb | 17 ----------------- 2 files changed, 18 deletions(-) delete mode 100644 actionpack/lib/action_controller/deprecated_redirects.rb (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller.rb b/actionpack/lib/action_controller.rb index 4fb8542382..58aff0922a 100755 --- a/actionpack/lib/action_controller.rb +++ b/actionpack/lib/action_controller.rb @@ -37,7 +37,6 @@ end $:.unshift "#{File.dirname(__FILE__)}/action_controller/vendor/html-scanner" require 'action_controller/base' -require 'action_controller/deprecated_redirects' require 'action_controller/request' require 'action_controller/deprecated_request_methods' require 'action_controller/rescue' diff --git a/actionpack/lib/action_controller/deprecated_redirects.rb b/actionpack/lib/action_controller/deprecated_redirects.rb deleted file mode 100644 index 3e18aeab40..0000000000 --- a/actionpack/lib/action_controller/deprecated_redirects.rb +++ /dev/null @@ -1,17 +0,0 @@ -module ActionController - class Base - protected - # Deprecated in favor of calling redirect_to directly with the path. - def redirect_to_path(path) #:nodoc: - redirect_to(path) - end - - # Deprecated in favor of calling redirect_to directly with the url. If the resource has moved permanently, it's possible to pass - # true as the second parameter and the browser will get "301 Moved Permanently" instead of "302 Found". This can also be done through - # just setting the headers["Status"] to "301 Moved Permanently" before using the redirect_to. - def redirect_to_url(url, permanently = false) #:nodoc: - headers["Status"] = "301 Moved Permanently" if permanently - redirect_to(url) - end - end -end -- cgit v1.2.3