From 2765793f7dabf4a6a9758566fe02b7f31598c0a0 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 7 Dec 2019 19:46:11 -0600 Subject: make domain policies templatable --- app/models/domain_block.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models') 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 -- cgit