Class: EmailBlocklist
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- EmailBlocklist
- Defined in:
- lib/generators/ruby_cms/templates/models/email_blocklist.rb
Class Method Summary collapse
Class Method Details
.blocked?(email) ⇒ Boolean
11 12 13 14 |
# File 'lib/generators/ruby_cms/templates/models/email_blocklist.rb', line 11 def self.blocked?(email) normalized = email.to_s.strip.downcase normalized.present? && where(email: normalized).exists? end |