diff options
| author | hukl <hukl@eight.intern.artcom.de> | 2009-02-03 16:47:43 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.intern.artcom.de> | 2009-02-03 16:47:43 +0100 |
| commit | 1902c4bf975a5c1decd199a5190b04d08a2e4760 (patch) | |
| tree | 11a6983e98567f6894abb7c353e39ea30da458bb /app/models/node.rb | |
| parent | 91b6089337e59d0c30a0112a5689f476d3c2f013 (diff) | |
added lots of comments to describe what the
methods are doing. this will get
everyone a better start. I hope
Diffstat (limited to 'app/models/node.rb')
| -rw-r--r-- | app/models/node.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index 3564ce4..0aa28b9 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -40,5 +40,6 @@ class Node < ActiveRecord::Base | |||
| 40 | def update_unique_name | 40 | def update_unique_name |
| 41 | path = self.path_to_root[1..-1] | 41 | path = self.path_to_root[1..-1] |
| 42 | self.unique_name = path.join("/") | 42 | self.unique_name = path.join("/") |
| 43 | self.save | ||
| 43 | end | 44 | end |
| 44 | end | 45 | end |
