Stop using legacy api carto after migration

This commit is contained in:
Paul Chavard 2018-10-31 11:32:41 +01:00
parent 44ca6a2d02
commit 2462e42b53
8 changed files with 14 additions and 8 deletions

View file

@ -25,7 +25,7 @@
.actions
= link_to 'Utiliser un autre numéro SIRET', siret_dossier_path(@dossier), class: 'button'
- if @dossier.procedure.use_api_carto
- if @dossier.use_legacy_carto?
/ Until the old layout is gone, we need to disable turbolinks
/ to avoid the map loading twice (once for the turbolinks preview,
/ once when turbolinks notices the layout are differents and reloads