I’ve an admin namespace in my app with some controllers.
What’s the best approach in order to login protect all of them?
I’m thinking about using before_filter, but I can forget to add it to
an new controller, in the future.
Googling for it, I’ve found this:
As I’ve read in the article’s comments, I could use an admin
superclass. But I can forget to inherits from it too.
So, my question is: what’s the best approach to my problem?
An Module? Superclass? before_filter?
Thank you very much and sorry for my poor English.