style(demande): homogeneize "blank" champs and not attached files champs

This commit is contained in:
Colin Darie 2023-06-27 17:38:37 +02:00
parent da9f76a538
commit 1bdc6c02c6
6 changed files with 16 additions and 10 deletions

View file

@ -37,6 +37,10 @@ class Champs::TitreIdentiteChamp < Champ
mandatory? && !piece_justificative_file.attached?
end
def blank?
piece_justificative_file.blank?
end
def for_export
piece_justificative_file.attached? ? "présent" : "absent"
end