From cd36f2622faf4246944895a9f5c7432d5a1b4786 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Thu, 24 Jun 2021 21:00:58 +0200 Subject: [PATCH] fix download FakeAttachment --- app/services/pieces_justificatives_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/pieces_justificatives_service.rb b/app/services/pieces_justificatives_service.rb index 63e2cb76d..c70ace4dc 100644 --- a/app/services/pieces_justificatives_service.rb +++ b/app/services/pieces_justificatives_service.rb @@ -57,7 +57,7 @@ class PiecesJustificativesService property :created_at def download - file + file.read end def read(*args)