diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-16 16:50:04 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-16 16:50:04 -0700 |
commit | 7aa96a130b3050d3c1f0277f333a75a474df93b0 (patch) | |
tree | d3066ac20a89b1846407b93e5782db51b194e8ae /actionpack/lib | |
parent | 835df6f3ed9b1575fd6a1fb62516d8ebeffbf114 (diff) | |
parent | 3fa00070047b5d019d39e691598ee2890283d052 (diff) | |
download | rails-7aa96a130b3050d3c1f0277f333a75a474df93b0.tar.gz rails-7aa96a130b3050d3c1f0277f333a75a474df93b0.tar.bz2 rails-7aa96a130b3050d3c1f0277f333a75a474df93b0.zip |
Merge pull request #2237 from jackdempsey/log_redirect_to
log at debug level what line caused the redirect_to
Diffstat (limited to 'actionpack/lib')
-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 4290707a64..ee0e69d87c 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -65,6 +65,7 @@ module ActionController def redirect_to(options = {}, response_status = {}) #:doc: raise ActionControllerError.new("Cannot redirect to nil!") unless options 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) |