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

4 lines
142 B
Ruby
Raw Normal View History

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