aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-03-05 12:22:49 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-03-05 12:22:49 +0100
commitb1c989f28dd1d619f0e3e3ca1b894b686e517f2f (patch)
treef9f36bc55dd419fdf260e25a6dfdbf9f99d32341 /actionpack/lib/action_controller/base.rb
parentde540416e9a1ead164c9c80352565de2dc5955ce (diff)
downloadrails-b1c989f28dd1d619f0e3e3ca1b894b686e517f2f.tar.gz
rails-b1c989f28dd1d619f0e3e3ca1b894b686e517f2f.tar.bz2
rails-b1c989f28dd1d619f0e3e3ca1b894b686e517f2f.zip
Fixed that redirection would just log the options, not the final url (which lead to "Redirected to #<Post:0x23150b8>") [DHH]
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rw-r--r--actionpack/lib/action_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 564fdf677e..b769a2e67e 100644
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -1101,7 +1101,6 @@ module ActionController #:nodoc:
end
response.redirected_to = options
- logger.info("Redirected to #{options}") if logger && logger.info?
case options
# The scheme name consist of a letter followed by any combination of
@@ -1124,6 +1123,7 @@ module ActionController #:nodoc:
def redirect_to_full_url(url, status)
raise DoubleRenderError if performed?
+ logger.info("Redirected to #{url}") if logger && logger.info?
response.redirect(url, interpret_status(status))
@performed_redirect = true
end