4 ms·
If it helps you can make that the default for all your serializers, by doing something like this in an initializer: ActiveSupport.on_load(:active_model_ser
by lentil 13y ago
If it helps you can make that the default for all your serializers, by doing something like this in an initializer:
ActiveSupport.on_load(:active_model_serializers) do
ActiveModel::ArraySerializer.root = false
ActiveModel::Serializer.root = false
end