Set model_class in relations controller.