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

@ -245,6 +245,10 @@ class Dossier < ApplicationRecord
end
end
def use_legacy_carto?
procedure.use_legacy_carto?
end
def user_geometry
if json_latlngs.present?
UserGeometry.new(json_latlngs)