what are serializers in rails?
ActiveModel::Serializer provides a way of creating custom JSON by representing each resource as a class that inherits from ActiveModel::Serializer . With that in mind, it gives us a better way of testing compared to other methods.