I have a DSL for controller configuration. The main functionality depends on before_filters. To prevent the setting of the before_filter parameter more than once, I really need to find out if the before_filter parameter is set in the Rails 3 controller. Since before_filter is different from class variables (inheritance, reloading classes), I cannot just set the class variable to check.
Digging in a new highly abstracted code for AbstractController callbacks doesn't give me any clues if this is possible at all.
Do I really need to call skip_filter for every DSL call in the controller?
source share