X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/63970defb0bb4e06fda7ba39cf7e82396072ead1..ddd5b4cf19a92582fd114914be5bd5a04d3522a7:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index 59aa4d36f..69ce5d682 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -110,4 +110,13 @@ class Node < GeoRecord el1['timestamp'] = self.timestamp.xmlschema return el1 end + + def tags_as_hash + hash = {} + Tags.split(self.tags) do |k,v| + hash[k] = v + end + hash + end + end