X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b72fedb162d3fcecc304d7dfe5f67acb30844099..d69a518b9e69107503b332728dfa583594293ea1:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 891b89731..7bafca053 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -50,4 +50,12 @@ class OldNode < ActiveRecord::Base 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