diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 03:19:27 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 03:19:27 +0000 |
commit | dfd953ea962675fdfd397a1e75c04b0536ff3c65 (patch) | |
tree | 97353b0ff6347f349cf9546c2fda450c5140ae83 /actionpack/lib/action_controller/deprecated_redirects.rb | |
parent | fed7d334f2904afc0955a6496859a8779f3d965e (diff) | |
download | rails-dfd953ea962675fdfd397a1e75c04b0536ff3c65.tar.gz rails-dfd953ea962675fdfd397a1e75c04b0536ff3c65.tar.bz2 rails-dfd953ea962675fdfd397a1e75c04b0536ff3c65.zip |
Fixed docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/deprecated_redirects.rb')
-rw-r--r-- | actionpack/lib/action_controller/deprecated_redirects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/deprecated_redirects.rb b/actionpack/lib/action_controller/deprecated_redirects.rb index 264ac8de82..3e18aeab40 100644 --- a/actionpack/lib/action_controller/deprecated_redirects.rb +++ b/actionpack/lib/action_controller/deprecated_redirects.rb @@ -2,14 +2,14 @@ module ActionController class Base protected # Deprecated in favor of calling redirect_to directly with the path. - def redirect_to_path(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) + def redirect_to_url(url, permanently = false) #:nodoc: headers["Status"] = "301 Moved Permanently" if permanently redirect_to(url) end |