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