Align EmailValidator to validate_email gem implementation.

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

Loading