rails/rails — pull request #9626 by dasch (2013-03-09 16:45:07+00:00)
Title: Use AS::Notifications to instrument Strong Params

This pull request decouples Parameters from the actual logging, instead using a LogSubscriber for that. Since ActiveSupport::Notifications is used, it is trivial to add other subscribers if needed. I'd like to add a Statsd subscriber in one of my own apps in order to monitor the frequency of unpermitted param injection attempts, but many other uses seem possible.

It would be nice to include the controller and action in the event payload, but that would require a larger change. If you guys deem it desirable I would be happy to do it.