mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 12:47:29 +02:00
Make sure what expired domain emails will not be sent to non-valid addreses
This commit is contained in:
parent
91093b274d
commit
29f7aa19ac
4 changed files with 33 additions and 18 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue