feat(routing): use only department codes in routing rules

This commit is contained in:
Eric Leroy-Terquem 2023-08-29 11:35:39 +02:00
parent 4e6788919f
commit ca25788f07
6 changed files with 22 additions and 21 deletions

View file

@ -70,6 +70,6 @@ class Procedure::OneGroupeManagementComponent < ApplicationComponent
end
def departements_for_select
APIGeoService.departements.map { ["#{_1[:code]} #{_1[:name]}", constant("#{_1[:code]} #{_1[:name]}").to_json] }
APIGeoService.departements.map { ["#{_1[:code]} #{_1[:name]}", constant(_1[:code]).to_json] }
end
end