diff options
Diffstat (limited to 'app/models/page.rb')
| -rw-r--r-- | app/models/page.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/page.rb b/app/models/page.rb index c4d66fc..f33d88d 100644 --- a/app/models/page.rb +++ b/app/models/page.rb | |||
| @@ -17,9 +17,9 @@ class Page < ApplicationRecord | |||
| 17 | # vanished stay saveable -- valid_template already falls back to | 17 | # vanished stay saveable -- valid_template already falls back to |
| 18 | # standard_template for those at render time. | 18 | # standard_template for those at render time. |
| 19 | validates :template_name, | 19 | validates :template_name, |
| 20 | :inclusion => { :in => ->(_) { Page.custom_templates } }, | 20 | :inclusion => { :in => ->(_) { Page.custom_templates } }, |
| 21 | :allow_nil => true, | 21 | :allow_blank => true, |
| 22 | :if => :template_name_changed? | 22 | :if => :template_name_changed? |
| 23 | 23 | ||
| 24 | # Associations | 24 | # Associations |
| 25 | belongs_to :node, optional: true | 25 | belongs_to :node, optional: true |
