X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6ae23bed90f249ed943cc43f1bad0e40852f04bb..700da2b3470de2a7826472160e1c93d8a983fefa:/app/models/old_way.rb diff --git a/app/models/old_way.rb b/app/models/old_way.rb index cdc0c4717..edf66aac3 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -95,6 +95,7 @@ class OldWay < ActiveRecord::Base el1['visible'] = self.visible.to_s el1['timestamp'] = self.timestamp.xmlschema el1['user'] = self.user.display_name if self.user.data_public? + el1['version'] = self.version.to_s self.old_nodes.each do |nd| # FIXME need to make sure they come back in the right order e = XML::Node.new 'nd' @@ -109,5 +110,20 @@ class OldWay < ActiveRecord::Base el1 << e end return el1 - end + end + + # Temporary method to match interface to nodes + def tags_as_hash + return self.tags + end + + # Temporary method to match interface to ways + def way_nodes + return self.old_nodes + end + + # Pretend we're not in any relations + def containing_relation_members + return [] + end end