refactor(champ): mandatory_blank_and_visible? -> mandatory_blank?

As the method does not check visibility
This commit is contained in:
simon lehericey 2022-10-17 10:38:23 +02:00 committed by LeSim
parent 6832b12bd4
commit 9bba2093be
8 changed files with 18 additions and 18 deletions

View file

@ -32,7 +32,7 @@ class Champs::TitreIdentiteChamp < Champ
# We dont know how to search inside documents yet
end
def mandatory_blank_and_visible?
def mandatory_blank?
mandatory? && !piece_justificative_file.attached?
end