From c8332b5e22b58a112a053a1115b02bf37f1aca8d Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 28 Oct 2024 10:09:39 +0100 Subject: [PATCH] column: add more identifier --- app/models/column.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/column.rb b/app/models/column.rb index 65497078a..94f9295f8 100644 --- a/app/models/column.rb +++ b/app/models/column.rb @@ -38,8 +38,9 @@ class Column end def notifications? = [table, column] == ['notifications', 'notifications'] - def dossier_state? = [table, column] == ['self', 'state'] + def groupe_instructeur? = [table, column] == ['groupe_instructeur', 'id'] + def type_de_champ? = table == TYPE_DE_CHAMP_TABLE def self.find(h_id) begin