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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/node.rb b/app/models/node.rb
index 1b80565..3cab7ed 100644
--- a/app/models/node.rb
+++ b/app/models/node.rb
@@ -146,7 +146,7 @@ class Node < ActiveRecord::Base
146 146
147 # returns an array with all parts of a unique_name rather than a string 147 # returns an array with all parts of a unique_name rather than a string
148 def unique_path 148 def unique_path
149 unique_name.split("/") rescue [unique_name] 149 unique_name.to_s
150 end 150 end
151 151
152 # returns array with pages up to root excluding root 152 # returns array with pages up to root excluding root