aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-13 03:58:22 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-13 03:58:22 +0000
commitcb6d94cc577370b49aac4ad7d2718e78d350a797 (patch)
treed1a371e27d1c7c7f4597bfd970939279df0c91b0 /actionpack/lib/action_controller
parent83c8db981892820b747390d854595268afade8dd (diff)
downloadrails-cb6d94cc577370b49aac4ad7d2718e78d350a797.tar.gz
rails-cb6d94cc577370b49aac4ad7d2718e78d350a797.tar.bz2
rails-cb6d94cc577370b49aac4ad7d2718e78d350a797.zip
Deprecation: remove deprecated redirect methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/deprecated_redirects.rb17
1 files changed, 0 insertions, 17 deletions
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