Skip to content

Commit

Permalink
feature(user): improved email already taken message for more clarity …
Browse files Browse the repository at this point in the history
…message
  • Loading branch information
Raushan Kumar Raman committed Jan 3, 2025
1 parent 9b413a2 commit dd285dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/validators/user_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd285dc

Please sign in to comment.