feat(pj): add specialized column for PieceJustifiativeChamp
This commit is contained in:
parent
c209cac62f
commit
ed3b1bc046
1 changed files with 9 additions and 0 deletions
9
app/models/columns/piece_justificative_column.rb
Normal file
9
app/models/columns/piece_justificative_column.rb
Normal 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
|
Loading…
Reference in a new issue