From 245f7bb97520deb3a5d4b131bca1b47fda0c553b Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 2 Sep 2024 17:25:46 +0200 Subject: [PATCH] remove column.virtual params --- app/models/column.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/column.rb b/app/models/column.rb index c286bc098..0c97e9217 100644 --- a/app/models/column.rb +++ b/app/models/column.rb @@ -3,7 +3,7 @@ class Column attr_reader :table, :column, :label, :classname, :type, :scope, :value_column, :filterable, :displayable - def initialize(table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, classname: '', scope: '', virtual: nil) + def initialize(table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, classname: '', scope: '') @table = table @column = column @label = label || I18n.t(column, scope: [:activerecord, :attributes, :procedure_presentation, :fields, table]) @@ -13,7 +13,7 @@ class Column @value_column = value_column @filterable = filterable # We need this for backward compatibility - @displayable = virtual ? false : displayable + @displayable = displayable end def id