refactor(routing): use drop_down_options
This commit is contained in:
parent
c86651cfc5
commit
4749b43697
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ module Administrateurs
|
||||||
|
|
||||||
tdc = @procedure.active_revision.routable_types_de_champ.find { |tdc| tdc.stable_id == stable_id }
|
tdc = @procedure.active_revision.routable_types_de_champ.find { |tdc| tdc.stable_id == stable_id }
|
||||||
|
|
||||||
tdc_options = tdc.options["drop_down_options"].reject(&:empty?)
|
tdc_options = tdc.drop_down_options.reject(&:empty?)
|
||||||
|
|
||||||
tdc_options.each do |option_label|
|
tdc_options.each do |option_label|
|
||||||
gi = @procedure.groupe_instructeurs.find_by({ label: option_label }) || @procedure.groupe_instructeurs
|
gi = @procedure.groupe_instructeurs.find_by({ label: option_label }) || @procedure.groupe_instructeurs
|
||||||
|
|
Loading…
Reference in a new issue