Add type options on carte champ

This commit is contained in:
Paul Chavard 2018-10-17 13:42:06 +03:00
parent f28cfdc779
commit a541f1fcee

View file

@ -15,6 +15,14 @@ class Champs::CarteChamp < Champ
end
end
def cadastres?
type_de_champ&.cadastres && type_de_champ.cadastres != '0'
end
def quartiers_prioritaires?
type_de_champ&.quartiers_prioritaires && type_de_champ.quartiers_prioritaires != '0'
end
def position
if dossier.present?
dossier.geo_position