manager: make resources searchable by id

This commit is contained in:
Pierre de La Morinerie 2018-07-23 09:01:25 +00:00
parent 5c6fa992f8
commit f6c83cae1f
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ class DossierDashboard < Administrate::BaseDashboard
# which determines how the attribute is displayed
# on pages throughout the dashboard.
ATTRIBUTE_TYPES = {
id: Field::Number,
id: Field::Number.with_options(searchable: true),
procedure: Field::HasOne,
state: Field::String,
text_summary: Field::String.with_options(searchable: false),

View file

@ -14,7 +14,7 @@ class ProcedureDashboard < Administrate::BaseDashboard
dossiers: Field::HasMany,
gestionnaires: Field::HasMany,
administrateur: Field::BelongsTo,
id: Field::Number,
id: Field::Number.with_options(searchable: true),
libelle: Field::String,
description: Field::String,
organisation: Field::String,