Try using active_model_serializer