diff --git a/app/serializers/type_de_champ_serializer.rb b/app/serializers/type_de_champ_serializer.rb index 152e908e1..b8ef6ecb7 100644 --- a/app/serializers/type_de_champ_serializer.rb +++ b/app/serializers/type_de_champ_serializer.rb @@ -4,4 +4,8 @@ class TypeDeChampSerializer < ActiveModel::Serializer :type_champ, :order_place, :description + + def id + object.stable_id || object.id + end end