Skip to content

Commit

Permalink
Fixed that redirection would just log the options, not the final url …
Browse files Browse the repository at this point in the history
…(which lead to "Redirected to #<Post:0x23150b8>") [DHH]
  • Loading branch information
dhh committed Mar 5, 2009
1 parent de54041 commit b1c989f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*2.3.1 [RC2] (March 5, 2009)*

* Fixed that redirection would just log the options, not the final url (which lead to "Redirected to #<Post:0x23150b8>") [DHH]

* Added ability to pass in :public => true to fresh_when, stale?, and expires_in to make the request proxy cachable #2095 [Gregg Pollack]

* Fixed that passing a custom form builder would be forwarded to nested fields_for calls #2023 [Eloy Duran/Nate Wiger]
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/base.rb
Expand Up @@ -1101,7 +1101,6 @@ def redirect_to(options = {}, response_status = {}) #:doc:
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
Expand All @@ -1124,6 +1123,7 @@ def redirect_to(options = {}, response_status = {}) #:doc:

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
Expand Down

0 comments on commit b1c989f

Please sign in to comment.