Make sure what expired domain emails will not be sent to non-valid addreses

This commit is contained in:
Alex Sherman 2021-03-22 15:21:53 +05:00
parent 91093b274d
commit 29f7aa19ac
4 changed files with 33 additions and 18 deletions

View file

@ -1,15 +0,0 @@
class EmailValidator
def self.regexp
Devise::email_regexp
end
def initialize(email)
@email = email
end
def valid?
email =~ self.class.regexp
end
attr_reader :email
end