parent
699db454c3
commit
7a1f8a58df
7 changed files with 24 additions and 5 deletions
|
@ -12,7 +12,7 @@
|
|||
class EmailDomainBlock < ApplicationRecord
|
||||
include DomainNormalizable
|
||||
|
||||
validates :domain, presence: true, uniqueness: true
|
||||
validates :domain, presence: true, uniqueness: true, domain: true
|
||||
|
||||
def self.block?(email)
|
||||
_, domain = email.split('@', 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue