Update app/models/type_de_champ.rb

Co-authored-by: Paul Chavard <paul.chavard@beta.gouv.fr>
This commit is contained in:
Lisa Durand 2023-10-11 17:12:05 +02:00 committed by GitHub
parent 6380859668
commit d1d2f30833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -501,7 +501,7 @@ class TypeDeChamp < ApplicationRecord
elsif region?
APIGeoService.regions.map { [_1[:name], _1[:code]] }
elsif choice_type?
if drop_down_list_options?
if drop_down_list?
enabled_non_empty_options
elsif yes_no?
Champs::YesNoChamp.options