Add tags_as_hash to old_nodes

This commit is contained in:
Christopher Schmidt 2008-04-20 15:12:56 +00:00
parent 4fbc1ddde4
commit 15d5997067

View file

@ -48,4 +48,12 @@ class OldNode < 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