rails/rails — pull request #8404 by freegenie (2012-12-03 10:48:01+00:00)
Title: Filter redirects

Given the latest discussion on rails-core google group, rather than just discussing this one I'm providing working code. I think Rails is missing a way to filter redirect logs. It makes sense to me, given redirect logs could hold sensible informations the same way POST params do.
The typical example is when you redirect to S3 signed URLs, which is my case. People is sending out logs to third party services for analysis, this feature will at least give them a way to have more control over what they send.

I was thinking about a way to make a gem out of it, but I seems that the current implementation does not leave room for anything to plug other than a monkeypatch. Advices on how to make a gem for this are of welcome of course.