X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b72fedb162d3fcecc304d7dfe5f67acb30844099..49637fed70c3cee22646c3f63ebbdc7261c07102:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 891b89731..76eab8427 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -50,4 +50,22 @@ 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 + + # Pretend we're not in any ways + def ways + return [] + end + + # Pretend we're not in any relations + def containing_relation_members + return [] + end end