Rails 3.1 replacement for filter_chain

In previous versions of rails, you could do MyController.filter_chain to get an object representing the filters on a controller.

This has been deprecated in new rails versions, but it took a bit of digging around to get to the replacement:


There are a load of other _*_callbacks methods which store other callbacks, check these by running this in a shell:

MyController.grep /callbacks/