From e0daf1032db53fc88a9a3a516712469d25bc08f8 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 2 Sep 2024 17:27:35 +0200 Subject: [PATCH] rename virtual_dates by non_displayable_dates --- app/models/concerns/columns_concern.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/columns_concern.rb b/app/models/concerns/columns_concern.rb index ac0f23cf1..1fb72c2af 100644 --- a/app/models/concerns/columns_concern.rb +++ b/app/models/concerns/columns_concern.rb @@ -22,12 +22,12 @@ module ColumnsConcern dates = ['created_at', 'updated_at', 'depose_at', 'en_construction_at', 'en_instruction_at', 'processed_at'] .map { |column| Column.new(table: 'self', column:, type: :date) } - virtual_dates = ['updated_since', 'depose_since', 'en_construction_since', 'en_instruction_since', 'processed_since'] + non_displayable_dates = ['updated_since', 'depose_since', 'en_construction_since', 'en_instruction_since', 'processed_since'] .map { |column| Column.new(table: 'self', column:, type: :date, displayable: false) } states = [Column.new(table: 'self', column: 'state', type: :enum, scope: 'instructeurs.dossiers.filterable_state', displayable: false)] - [common, dates, sva_svr_columns(for_filters: true), virtual_dates, states].flatten.compact + [common, dates, sva_svr_columns(for_filters: true), non_displayable_dates, states].flatten.compact end def sva_svr_columns(for_filters: false)