diff --git a/app/lib/active_storage/downloadable_file.rb b/app/lib/active_storage/downloadable_file.rb index d1841d7cc..6e4137467 100644 --- a/app/lib/active_storage/downloadable_file.rb +++ b/app/lib/active_storage/downloadable_file.rb @@ -15,7 +15,7 @@ class ActiveStorage::DownloadableFile pjs = PiecesJustificativesService.liste_pieces_justificatives(dossier) pjs.map do |piece_justificative| [ - ActiveStorage::DownloadableFile.new(piece_justificative), + piece_justificative, piece_justificative.filename.to_s ] end