Skip to content

Commit b1c989f

Browse files
author
David Heinemeier Hansson
committed
Fixed that redirection would just log the options, not the final url (which lead to "Redirected to #<Post:0x23150b8>") [DHH]
1 parent de54041 commit b1c989f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

actionpack/CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
*2.3.1 [RC2] (March 5, 2009)*
22

3+
* Fixed that redirection would just log the options, not the final url (which lead to "Redirected to #<Post:0x23150b8>") [DHH]
4+
35
* Added ability to pass in :public => true to fresh_when, stale?, and expires_in to make the request proxy cachable #2095 [Gregg Pollack]
46

57
* Fixed that passing a custom form builder would be forwarded to nested fields_for calls #2023 [Eloy Duran/Nate Wiger]

actionpack/lib/action_controller/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,6 @@ def redirect_to(options = {}, response_status = {}) #:doc:
11011101
end
11021102

11031103
response.redirected_to = options
1104-
logger.info("Redirected to #{options}") if logger && logger.info?
11051104

11061105
case options
11071106
# The scheme name consist of a letter followed by any combination of
@@ -1124,6 +1123,7 @@ def redirect_to(options = {}, response_status = {}) #:doc:
11241123

11251124
def redirect_to_full_url(url, status)
11261125
raise DoubleRenderError if performed?
1126+
logger.info("Redirected to #{url}") if logger && logger.info?
11271127
response.redirect(url, interpret_status(status))
11281128
@performed_redirect = true
11291129
end

0 commit comments

Comments
 (0)