Skip to content

Instantly share code, notes, and snippets.

@hrishimittal
Created October 6, 2017 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrishimittal/4b21ab558a9fb7795a03296f07b86a2a to your computer and use it in GitHub Desktop.
Save hrishimittal/4b21ab558a9fb7795a03296f07b86a2a to your computer and use it in GitHub Desktop.
#Put this in application_controller.rb to trace all redirects
def redirect_to(options = {}, response_status = {})
puts("Redirected by #{caller(1).first rescue "unknown"}")
super(options, response_status)
end
#Put this in application_controller.rb to trace all redirects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment