I have a bunch of controllers in the namespace Foo. I would like to apply before_filter 'require_user'to all of them, but not to other controllers that do not belong to the namespace Foo.
Is there a way to do this other than explicitly calling the before_filter method in each controller?
source
share