summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/page.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/page.rb b/app/models/page.rb
index 2f52c498..5d3cb0aa 100644
--- a/app/models/page.rb
+++ b/app/models/page.rb
@@ -12,6 +12,8 @@ class Page < ApplicationRecord
12 12
13 translates :title, :abstract, :body # Globalize2 13 translates :title, :abstract, :body # Globalize2
14 14
15 before_validation { self.redirect = nil if redirect.blank? }
16
15 # Template names render as filesystem paths; only names actually 17 # Template names render as filesystem paths; only names actually
16 # present in the public template directory are acceptable. Validated 18 # present in the public template directory are acceptable. Validated
17 # only on change so legacy rows whose template file has since 19 # only on change so legacy rows whose template file has since