feat(pj): add specialized column for PieceJustifiativeChamp

This commit is contained in:
mfo 2024-11-04 17:01:00 +01:00
parent c209cac62f
commit ed3b1bc046
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -0,0 +1,9 @@
# frozen_string_literal: true
class Columns::PieceJustificativeColumn < Column
private
def typed_value(champ)
champ.piece_justificative_file.map { _1.blob.filename.to_s }.join(', ')
end
end