diff options
| author | hukl <contact@smyck.org> | 2009-09-05 18:07:44 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-05 18:07:44 +0200 |
| commit | 3c631738935199aba050223bac50416b299e16c5 (patch) | |
| tree | e659ebb6a6caa23a92f8cef77298330ea7b85334 /app | |
| parent | 2df933b6b726526689cbcb55a8614d2992973081 (diff) | |
prepend public_link with slash
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/page.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/page.rb b/app/models/page.rb index 8583071..2641316 100644 --- a/app/models/page.rb +++ b/app/models/page.rb | |||
| @@ -114,7 +114,7 @@ class Page < ActiveRecord::Base | |||
| 114 | end | 114 | end |
| 115 | 115 | ||
| 116 | def public_link | 116 | def public_link |
| 117 | node.unique_name | 117 | "/#{node.unique_name}" |
| 118 | end | 118 | end |
| 119 | 119 | ||
| 120 | def clone_attributes_from page | 120 | def clone_attributes_from page |
