Skip to content

Align EmailValidator to validate_email gem implementation.

Horatiu Eugen Vlad requested to merge hvlad/gitlab-ce:fix/email_validator into master

What does this MR do?

Renamed EmailValidator to DeviseEmailValidator to avoid 'email:' naming collision with ActiveModel::Validations::EmailValidator in 'validates' statement.

Make use of the options attribute of the parent class ActiveModel::EachValidator.

Add more options: regex.

What are the relevant issue numbers?

Fixes #57352 (closed)

Does this MR meet the acceptance criteria?

Edited by Horatiu Eugen Vlad

Merge request reports