Make type_de_champ API ids stable

This commit is contained in:
Paul Chavard 2018-11-27 14:52:53 +01:00
parent 1883c57c87
commit 8d22275742

View file

@ -4,4 +4,8 @@ class TypeDeChampSerializer < ActiveModel::Serializer
:type_champ,
:order_place,
:description
def id
object.stable_id || object.id
end
end