I\'d like to create a before_filter method in my application controller like this...
def check_role(role_name) unless logged_in_user.has_role? role_name fl
it's an old question, but if somebody still wonders, a good asnwer for rails 4 can be found here