I was faced with this issue again and this time I did a simple trick to avoid getting into the complexities of :before_action etc.
simply did this.
add_to_serializer(:serializer, :value) {object.field.to_s}
I was faced with this issue again and this time I did a simple trick to avoid getting into the complexities of :before_action etc.
simply did this.
add_to_serializer(:serializer, :value) {object.field.to_s}
Wow. I figured it was something trivial that I would never guess. Thanks very much!