feat(pj): add specialized column for attachments
This commit is contained in:
parent
4f0713a764
commit
9d13ebb3ff
7 changed files with 59 additions and 51 deletions
9
app/models/columns/attached_many_column.rb
Normal file
9
app/models/columns/attached_many_column.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Columns::AttachedManyColumn < Columns::ChampColumn
|
||||
private
|
||||
|
||||
def typed_value(champ)
|
||||
champ.piece_justificative_file.to_a
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue