X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/413baecf6b27056cb73e6bb4bedb33de6410c65e..3ea2fc48c2508843b926b714e0572d1135b59ef1:/lib/object_metadata.rb?ds=sidebyside diff --git a/lib/object_metadata.rb b/lib/object_metadata.rb index d4d0bcfc7..4243c6437 100644 --- a/lib/object_metadata.rb +++ b/lib/object_metadata.rb @@ -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