Add tags_as_hash to old_nodes
This commit is contained in:
parent
4fbc1ddde4
commit
15d5997067
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue