• Horatiu Eugen Vlad's avatar
    Align EmailValidator to validate_email gem implementation. · c8c0ea6c
    Horatiu Eugen Vlad authored
    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.
    c8c0ea6c
devise_email_validator_spec.rb 2.09 KB