inject options in champ_column
This commit is contained in:
parent
db2e4cf802
commit
690d2c6258
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue