[Fix #508]Api GeoJson: export cadastre

This commit is contained in:
Simon Lehericey 2017-10-27 15:36:36 +02:00 committed by Mathieu Magnin
parent 9f2338a70a
commit f34546cf2a
4 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,17 @@
class CadastreSerializer < ActiveModel::Serializer
attributes :value, :type_de_champ
def value
object.geometry
end
def type_de_champ
{
id: -1,
libelle: 'cadastre',
type_champ: 'cadastre',
order_place: -1,
descripton: ''
}
end
end