tech(refactor.champs.validation): all champs validation use :validate_champ_value_or_prefill?

This commit is contained in:
mfo 2024-04-02 11:04:00 +02:00
parent c6e21fb7bd
commit aca67a2274
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
27 changed files with 124 additions and 137 deletions

View file

@ -1,5 +1,4 @@
class Champs::DossierLinkChamp < Champ
# TODO: if: -> { validate_champ_value? || validation_context == :prefill }
validate :value_integerable, if: -> { value.present? }, on: :prefill
private