Revert "Merge pull request #8899 from demarches-simplifiees/8738-validate-adresse-electronique"
This reverts commitd3eda28f35
, reversing changes made to6394996e7f
.
This commit is contained in:
parent
909d726429
commit
f2c1c071b4
4 changed files with 0 additions and 44 deletions
|
@ -21,11 +21,4 @@
|
|||
# type_de_champ_id :integer
|
||||
#
|
||||
class Champs::EmailChamp < Champs::TextChamp
|
||||
validates :value,
|
||||
format: {
|
||||
with: Devise.email_regexp,
|
||||
message: I18n.t('invalid', scope: 'activerecord.errors.models.email_champ.attributes.value')
|
||||
},
|
||||
allow_nil: true,
|
||||
if: -> { validation_context != :brouillon }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue