class AdminPolicy < ApplicationPolicy def index? user.is_admin? end def create? user.is_admin? end end