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

5 lines
202 B
Ruby
Raw Normal View History

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