inject options in champ_column

This commit is contained in:
simon lehericey 2024-11-06 11:47:10 +01:00
parent db2e4cf802
commit 690d2c6258
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -3,7 +3,7 @@
class TypesDeChamp::TypeDeChampBase
include ActiveModel::Validations
delegate :description, :libelle, :mandatory, :mandatory?, :stable_id, :fillable?, :public?, :type_champ, to: :@type_de_champ
delegate :description, :libelle, :mandatory, :mandatory?, :stable_id, :fillable?, :public?, :type_champ, :options_for_select, to: :@type_de_champ
FILL_DURATION_SHORT = 10.seconds
FILL_DURATION_MEDIUM = 1.minute
@ -105,7 +105,8 @@ class TypesDeChamp::TypeDeChampBase
label: libelle_with_prefix(prefix),
type: TypeDeChamp.column_type(type_champ),
value_column: TypeDeChamp.value_column(type_champ),
displayable:
displayable:,
options_for_select:
)
]
else