From 8599dd829a5d17637029c084f360ef388e14fb18 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 6 Nov 2024 22:10:11 +0100 Subject: [PATCH] remove obsolete column.to_json --- app/models/column.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/models/column.rb b/app/models/column.rb index 7f8cdc9b8..90fbfcf49 100644 --- a/app/models/column.rb +++ b/app/models/column.rb @@ -30,12 +30,6 @@ class Column def ==(other) = h_id == other.h_id # using h_id instead of id to avoid inversion of keys - def to_json - { - table:, column:, label:, type:, filterable:, displayable: - } - end - def notifications? = [table, column] == ['notifications', 'notifications'] def dossier_state? = [table, column] == ['self', 'state'] def groupe_instructeur? = [table, column] == ['groupe_instructeur', 'id']