If we set the serializer attribute, only serialize if the object exists. This is the behavior if you have a nil object and don't set the serializer attribute -- it just chooses the DefaultSerializer
If we set the serializer attribute, only serialize if the object exists. This is the behavior if you have a nil object and don't set the serializer attribute -- it just chooses the DefaultSerializer

getoutreach/active_model_serializers