remove column.virtual params

This commit is contained in:
simon lehericey 2024-09-02 17:25:46 +02:00
parent 3c7c58623f
commit 245f7bb975
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -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