15 lines
224 B
Ruby
15 lines
224 B
Ruby
class TypeDeChampSerializer < ActiveModel::Serializer
|
|
attributes :id,
|
|
:libelle,
|
|
:type_champ,
|
|
:order_place,
|
|
:description
|
|
|
|
def id
|
|
object.stable_id || object.id
|
|
end
|
|
|
|
def order_place
|
|
-1
|
|
end
|
|
end
|