[Fix #1098] Custom TypesDeChampCollectionField for Administrate

This commit is contained in:
Mathieu Magnin 2018-01-08 10:02:22 +01:00
parent 65f0859357
commit 51b94e2f53
5 changed files with 28 additions and 1 deletions

View file

@ -9,7 +9,7 @@ class ProcedureDashboard < Administrate::BaseDashboard
# on pages throughout the dashboard.
ATTRIBUTE_TYPES = {
types_de_piece_justificative: Field::HasMany,
types_de_champ: Field::HasMany.with_options(class_name: "TypeDeChampPublic"),
types_de_champ: TypesDeChampCollectionField,
dossiers: Field::HasMany,
procedure_path: Field::HasOne,
administrateur: Field::BelongsTo,