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
You should be able to do this with a block:
before_filter {|controller| controller.check_role('admin') }