I'm using the restful_authentication's current_user. So to find a user's recipes, I use:
current_user.recipes
I want the admin (I have an "admin" column in the users table) to view all recipes. I'm doing this right now, but think its too verbose:
@recipes = current_user.admin? ? Recipe.all : current_uesr.recipes
Is there a more efficient way to have the admin view all recipes (and non-admin only to view their own recipes) instead of doing the above?