]> git.openstreetmap.org Git - rails.git/blobdiff - lib/object_metadata.rb
Page titles: put specific page title at the start not the end
[rails.git] / lib / object_metadata.rb
index d4d0bcfc784260c048e5443bfcd444c2efb7aadc..4243c6437de2d297e63405bbe319a198153f0a5b 100644 (file)
@@ -27,4 +27,15 @@ module ObjectMetadata
       el['uid'] = user_id.to_s
     end
   end
+
+  def add_tags_to_xml_node(el, tags)
+    tags.each do |tag|
+      tag_el = XML::Node.new('tag')
+
+      tag_el['k'] = tag.k
+      tag_el['v'] = tag.v
+
+      el << tag_el
+    end
+  end
 end