From 1902c4bf975a5c1decd199a5190b04d08a2e4760 Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 3 Feb 2009 16:47:43 +0100 Subject: added lots of comments to describe what the methods are doing. this will get everyone a better start. I hope --- app/models/node.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/node.rb') 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 def update_unique_name path = self.path_to_root[1..-1] self.unique_name = path.join("/") + self.save end end -- cgit v1.3