class GlobalID

def model_class

def model_class
  @model_class ||= begin
    model = model_name.constantize
    if model <= GlobalID
      raise ArgumentError, "GlobalID and SignedGlobalID cannot be used as model_class."
    end
    model
  end
end