add a label for api and export for sensitive data as titre_identite_champ

This commit is contained in:
Lisa Durand 2022-11-08 16:46:57 +01:00 committed by Paul Chavard
parent c200e03771
commit f34c890278
2 changed files with 29 additions and 2 deletions

View file

@ -37,10 +37,10 @@ class Champs::TitreIdentiteChamp < Champ
end
def for_export
nil
piece_justificative_file.attached? ? "présent" : "absent"
end
def for_api
nil
piece_justificative_file.attached? ? "présent" : "absent"
end
end