blob: 9075b90a0207b9c75a1b3d0c212b43c7218f679b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# frozen_string_literal: true
class DomainBlock < ApplicationRecord
validates :domain, presence: true, uniqueness: true
def self.blocked?(domain)
where(domain: domain).exists?
end
end
|