Recursively filter params in Rails

by Trevor Turk

So, I needed to recursively filter out some certain values from a params has provided by Rails.

Here’s how I did it:

Is there a better way to do that? I’m not sure… If you have some clever ideas, fork that gist and do your worst.

Advertisement