X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/413baecf6b27056cb73e6bb4bedb33de6410c65e..b76bfe379e6527c9cfc2ced97aa615f8c2c45dd7:/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