I’ve got this method :
@current_user && @current_user.admin == 1
I want to be able to call this method from all my controllers and all my
If I put this method in application_controller I can call it from all my
controllers but none of my views.
If I put this method in application_helper I can call it from all my
views but none of my controllers.
What is the best way?