This commit is contained in:
1 parent
eda2bdfc7a
commit
89f89d738f
4 files changed
+3
-4
No files matched your search
@@ -20,7 +20,6 @@ class CanonicalEmailBlock < ApplicationRecord
|
||||
validates :canonical_email_hash, presence: true, uniqueness: true
|
||||
|
||||
scope :matching_email, ->(email) { where(canonical_email_hash: email_to_canonical_email_hash(email)) }
|
||||
scope :matching_account, ->(account) { matching_email(account&.user_email).or(where(reference_account: account)) }
|
||||
|
||||
def to_log_human_identifier
|
||||
canonical_email_hash
|
||||
|
||||
Reference in new issue
Block a user