dossier: refactor piece_justificative export helpers
This commit is contained in:
parent
b83a76a0a1
commit
84149218db
2 changed files with 3 additions and 2 deletions
|
@ -701,7 +701,8 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
|
||||
def attachments_downloadable?
|
||||
!PiecesJustificativesService.liste_pieces_justificatives(self).empty? && PiecesJustificativesService.pieces_justificatives_total_size(self) < Dossier::TAILLE_MAX_ZIP
|
||||
PiecesJustificativesService.liste_pieces_justificatives(self).present? \
|
||||
&& PiecesJustificativesService.pieces_justificatives_total_size(self) < Dossier::TAILLE_MAX_ZIP
|
||||
end
|
||||
|
||||
def linked_dossiers_for(instructeur)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue