Rake task for listing rails controller filters

I was recently overhauling my permissions for a big rails app and needed to see which filters were on which controllers as an overview. I came up with this little snippet which will go through each of your controllers and print out which filters are on them, as well as their options.

Now I can go through and see what permissions are too strict and which are too lenient and test accordingly.