diff --git a/app/validators/user_validator.rb b/app/validators/user_validator.rb index d9b14cc020..bd86b5591d 100644 --- a/app/validators/user_validator.rb +++ b/app/validators/user_validator.rb @@ -8,7 +8,7 @@ def validate(record) valid_phone_number_if_receive_sms_notifications(record) validate_date_of_birth_in_past(record.date_of_birth, record) validate_date_of_birth_not_before_1920(record.date_of_birth, record) - validate_uniqueness(:email, record, I18n.t('activerecord.errors.messages.email_uniqueness')) + validate_uniqueness(:email, record, I18n.t("activerecord.errors.messages.email_uniqueness")) end private