From 16e0ce1316bb24f5d7973990fa438b8b3f2754e5 Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 7 Oct 2009 17:53:08 +0200 Subject: remove update module --- lib/Update.rb | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 lib/Update.rb (limited to 'lib') diff --git a/lib/Update.rb b/lib/Update.rb deleted file mode 100644 index 480bb0b..0000000 --- a/lib/Update.rb +++ /dev/null @@ -1,17 +0,0 @@ -module Update - - def self.find_or_create_parent - current_year = Time.now.year.to_s - - if parent = Node.find_by_unique_name("updates/#{current_year}") - parent - else - unless updates = Node.find_by_unique_name("updates") - updates = Node.root.children.create(:slug => "updates") - end - parent = updates.children.create(:slug => current_year) - parent - end - end - -end \ No newline at end of file -- cgit v1.3