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

@ -24,7 +24,7 @@ class Champs::SiretChamp < Champ
etablissement.present? ? etablissement.search_terms : [value]
end
def mandatory_blank_and_visible?
def mandatory_blank?
mandatory? && Siret.new(siret: value).invalid?
end
end