refactor(champ): mandatory_blank_and_visible? -> mandatory_blank?
As the method does not check visibility
This commit is contained in:
parent
6832b12bd4
commit
9bba2093be
8 changed files with 18 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue