For 2.0, I am thinking to remove action filters in favor of behaviors. As you know, behaviors can respond to events of their owners. Using this mechanism, it is possible to make a behavior to work like a filter.
Of course, there are still some differences between filters and behaviors. Below are the ones that are not easy or straightforward enough to implement filters using behaviors:
- Filters’ before and after methods are properly nested.
- If an inner filter’s before method quits, the outer filters’ after methods still get chance to be executed.
Your opinion is welcome!