0
0
Fork 0

Domain blocks now have varying severity - auto-suspend vs auto-silence

This commit is contained in:
Eugen Rochko 2017-01-23 17:38:38 +01:00
parent ef2b924679
commit 6d98a73180
8 changed files with 25 additions and 12 deletions

View file

@ -1,6 +1,8 @@
# frozen_string_literal: true
class DomainBlock < ApplicationRecord
enum severity: [:silence, :suspend]
validates :domain, presence: true, uniqueness: true
def self.blocked?(domain)