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

3 lines
142 B
Ruby

class Champs::ExpressionReguliereChamp < Champ
validates_with ExpressionReguliereValidator, if: -> { validation_context != :brouillon }
end