From ce9645d0092d42c7bf8781378181ffbd4ff3d088 Mon Sep 17 00:00:00 2001 From: hukl Date: Fri, 6 Feb 2009 21:48:41 +0100 Subject: added head id to node model which points to the head of the nodes pages collection. modified tests, importer etc renamed flags to tags --- lib/update_importer.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/update_importer.rb b/lib/update_importer.rb index ec9033a..f09564e 100644 --- a/lib/update_importer.rb +++ b/lib/update_importer.rb @@ -90,9 +90,13 @@ class UpdateImporter if (flags = xhtml.elements['flags']) && page page.tag_list.add("event") if flags.attributes['calendar'] page.tag_list.add("pressemitteilung") if flags.attributes['pm'] - page.save - print "#{page.title} >>> " - puts flags.attributes['calendar'].inspect + page.save! + end + + if node.head.nil? && page + puts page.title + node.head = page + node.save! end end -- cgit v1.3