about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-06-28 20:02:14 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:41:03 -0500
commitc69b3d9a61f9cf8b9c1a0fb6ee3fc2c7f075ab89 (patch)
tree5003de8ac8e1b9e79253530aa33f7628f0884e69 /app/models
parentfbbf4ab62cf0cf3ec54cedb4848c4bcdecdf677b (diff)
[Transparency] Add /api/v1/admin/domain_allows and /api/v1/admin/domain_blocks endpoints
Diffstat (limited to 'app/models')
-rw-r--r--app/models/domain_allow.rb1
-rw-r--r--app/models/domain_block.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/models/domain_allow.rb b/app/models/domain_allow.rb
index 734284e59..8bd647519 100644
--- a/app/models/domain_allow.rb
+++ b/app/models/domain_allow.rb
@@ -13,6 +13,7 @@
 
 class DomainAllow < ApplicationRecord
   include DomainNormalizable
+  include Paginable
 
   validates :domain, presence: true, uniqueness: true, domain: true
 
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb
index 2b18e01fa..743e21a29 100644
--- a/app/models/domain_block.rb
+++ b/app/models/domain_block.rb
@@ -16,6 +16,7 @@
 
 class DomainBlock < ApplicationRecord
   include DomainNormalizable
+  include Paginable
 
   enum severity: [:silence, :suspend, :noop]