Allow instructeurs to download a GeoJSON document for a given dossier

This commit is contained in:
Paul Chavard 2020-04-30 15:49:43 +02:00
parent ef2d9e1138
commit 843e033c38
8 changed files with 102 additions and 5 deletions

View file

@ -19,6 +19,12 @@ module Instructeurs
end
end
def geo_data
send_data dossier.to_feature_collection.to_json,
type: 'application/json',
filename: "dossier-#{dossier.id}-features.json"
end
def apercu_attestation
@attestation = dossier.procedure.attestation_template.render_attributes_for(dossier: dossier)