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