additionals/app/models/query_relations_column.rb
2021-04-21 14:57:24 +02:00

9 lines
224 B
Ruby

# frozen_string_literal: true
class QueryRelationsColumn < QueryColumn
# NOTE: used for CSV and PDF export
def value_object(object)
(object.send name).map(&:name).join "#{Query.additional_csv_separator} "
end
end