feat(individual.validation): add missing strict_email validation
This commit is contained in:
parent
f6046d801f
commit
b40cc2a54e
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Individual < ApplicationRecord
|
|||
if: -> { dossier.for_tiers? },
|
||||
on: :update
|
||||
|
||||
validates :email, presence: true, if: -> { dossier.for_tiers? && self.email? }, on: :update
|
||||
validates :email, strict_email: true, presence: true, if: -> { dossier.for_tiers? && self.email? }, on: :update
|
||||
|
||||
GENDER_MALE = "M."
|
||||
GENDER_FEMALE = 'Mme'
|
||||
|
|
Loading…
Reference in a new issue