summaryrefslogtreecommitdiff
path: root/app/models/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/node.rb')
-rw-r--r--app/models/node.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/node.rb b/app/models/node.rb
index b5b18a1..a440c2f 100644
--- a/app/models/node.rb
+++ b/app/models/node.rb
@@ -31,9 +31,9 @@ class Node < ApplicationRecord
31 validate :reserved_slug_stays_reserved 31 validate :reserved_slug_stays_reserved
32 validate :no_head_inside_trash 32 validate :no_head_inside_trash
33 validates :default_template_name, 33 validates :default_template_name,
34 :inclusion => { :in => ->(_) { Page.custom_templates } }, 34 :inclusion => { :in => ->(_) { Page.custom_templates } },
35 :allow_nil => true, 35 :allow_blank => true,
36 :if => :default_template_name_changed? 36 :if => :default_template_name_changed?
37 37
38 # Everything outside the Trash subtree, the Trash node included. 38 # Everything outside the Trash subtree, the Trash node included.
39 # Relies on unique_name being authoritative for tree position -- 39 # Relies on unique_name being authoritative for tree position --