about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-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