refactor(champ): remove type_de_champ_id and champ factories
This commit is contained in:
parent
860e06256f
commit
229483d16c
120 changed files with 1144 additions and 1540 deletions
|
@ -12,13 +12,11 @@ module ChampsValidateConcern
|
|||
private
|
||||
|
||||
def validate_champ_value?
|
||||
return false unless visible?
|
||||
|
||||
case validation_context
|
||||
when :champs_public_value
|
||||
public?
|
||||
public? && visible?
|
||||
when :champs_private_value
|
||||
private?
|
||||
private? && visible?
|
||||
else
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue