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
|
@ -32,7 +32,7 @@ class Champs::TitreIdentiteChamp < Champ
|
|||
# We don’t know how to search inside documents yet
|
||||
end
|
||||
|
||||
def mandatory_blank_and_visible?
|
||||
def mandatory_blank?
|
||||
mandatory? && !piece_justificative_file.attached?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue