diff options
author | Jack Dempsey <jack.dempsey@gmail.com> | 2011-07-23 21:39:57 -0700 |
---|---|---|
committer | Jack Dempsey <jack.dempsey@gmail.com> | 2012-05-16 16:32:17 -0700 |
commit | 3fa00070047b5d019d39e691598ee2890283d052 (patch) | |
tree | 464de32f76629c33100d78a29f143e05b35ecfbf | |
parent | d33eb07543aed1a07f9efe40ff7edc983b401957 (diff) | |
download | rails-3fa00070047b5d019d39e691598ee2890283d052.tar.gz rails-3fa00070047b5d019d39e691598ee2890283d052.tar.bz2 rails-3fa00070047b5d019d39e691598ee2890283d052.zip |
log at debug level what line caused the redirect_to
-rw-r--r-- | actionpack/lib/action_controller/metal/redirecting.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index dee7eb1ec8..a05902954a 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -59,6 +59,7 @@ module ActionController def redirect_to(options = {}, response_status = {}) #:doc: raise ActionControllerError.new("Cannot redirect to nil!") if options.nil? raise AbstractController::DoubleRenderError if response_body + logger.debug { "Redirected by #{caller(1).first rescue "unknown"}" } if logger self.status = _extract_redirect_to_status(options, response_status) self.location = _compute_redirect_to_location(options) |