global

def check_before(feature)

def check_before(feature)
  meth = :"check_before_#{feature.feature_name}"
  if respond_to?(meth)
    send(meth)
  elsif feature.account_required?
    require_account
  elsif logged_in?
    already_logged_in 
  end
end