demarches-normaliennes/app/serializers/quartier_prioritaire_serializer.rb
2017-11-28 14:37:12 +01:00

17 lines
319 B
Ruby

class QuartierPrioritaireSerializer < ActiveModel::Serializer
attributes :value, :type_de_champ
def value
object.geometry
end
def type_de_champ
{
id: -1,
libelle: 'quartier prioritaire',
type_champ: 'quartier_prioritaire',
order_place: -1,
descripton: ''
}
end
end