summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/page.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/page.rb b/app/models/page.rb
index 0d4da5d..950d9f2 100644
--- a/app/models/page.rb
+++ b/app/models/page.rb
@@ -94,6 +94,10 @@ class Page < ActiveRecord::Base
94 end 94 end
95 end 95 end
96 96
97 def public_link
98 "#{I18n.locale}/#{node.unique_name}"
99 end
100
97 def clone_attributes_from page 101 def clone_attributes_from page
98 return nil unless page 102 return nil unless page
99 103