demarches-normaliennes/app/models/champs/expression_reguliere_champ.rb

4 lines
202 B
Ruby

class Champs::ExpressionReguliereChamp < Champ
# TODO: if: -> { validate_champ_value? || validation_context == :prefill }
validates_with ExpressionReguliereValidator, if: :validate_champ_value?
end