about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-07 19:46:11 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-07 19:46:11 -0600
commit2765793f7dabf4a6a9758566fe02b7f31598c0a0 (patch)
tree13b5b2e83ecb8e68c8db5ea93ead4a4a076367e2 /app
parent174f588004d67fa6131c1f3d480b8f5d35ec0c62 (diff)
make domain policies templatable
Diffstat (limited to 'app')
-rw-r--r--app/models/domain_block.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb
index 9dd9a9085..2c577ec13 100644
--- a/app/models/domain_block.rb
+++ b/app/models/domain_block.rb
@@ -61,6 +61,10 @@ class DomainBlock < ApplicationRecord
     additionals
   end
 
+  def template
+    self.attributes.except('id', 'domain', 'created_at', 'updated_at', 'processing')
+  end
+
   # workaround for the domain policy editor
   def undo
     return false