I'm using active-model-serializers for my API. I have a model (Task) that has many subtasks(always Task model), called children. I do this recursive has_many association thanks to ancestry gem (I'm using active-model-serializers for my API.
I'm using active-model-serializers for my API. I have a model (Task) that has many subtasks(always Task model), called children. I do this recursive has_many association thanks to ancestry gem (I'm using active-model-serializers for my API.