summaryrefslogtreecommitdiff
path: root/app/models/node.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@dyn-174.club.berlin.ccc.de>2009-04-09 20:13:30 +0200
committererdgeist <erdgeist@dyn-174.club.berlin.ccc.de>2009-04-09 20:13:30 +0200
commit44e1eff0155d3da825ae7f4ef9e334a8e231e909 (patch)
treee6d21e4d0b8464ac9febb9efacc68cabe321a9c6 /app/models/node.rb
parent8c6b4dcf08268ed2971b06df40c733ba28448582 (diff)
parentacc9301696de3589a17d1543a7ab3fc1914e8ce8 (diff)
Merge branch 'master' of ssh://git@svn.medienhaus.udk-berlin.de/usr/local/git/cccms
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 8b7fe62..b56dff5 100644
--- a/app/models/node.rb
+++ b/app/models/node.rb
@@ -88,7 +88,7 @@ class Node < ActiveRecord::Base
88 88
89 # returns array with pages up to root excluding root 89 # returns array with pages up to root excluding root
90 def path_to_root 90 def path_to_root
91 parent.nil? && [slug] || parent.path_to_root.push(slug) 91 parent.nil? ? [slug] : parent.path_to_root.push(slug)
92 end 92 end
93 93
94 def update_unique_name 94 def update_unique_name