X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8c029f8d79d07384cffafb82d4b5979181bda8ad..6b0d4dcab2c72397dbbabd768e47323c0e2e42b2:/app/models/old_way.rb diff --git a/app/models/old_way.rb b/app/models/old_way.rb index e5ba53852..1552bae04 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -105,12 +105,10 @@ class OldWay < ActiveRecord::Base # (i.e. is it visible? are we actually reverting to an earlier version?) def get_nodes_undelete - points = [] - self.nds.each do |n| + self.nds.collect do |n| node = Node.find(n) - points << [node.lon, node.lat, n, node.version, node.tags_as_hash, node.visible] + [node.lon, node.lat, n, node.version, node.tags_as_hash, node.visible] end - points end def get_nodes_revert(timestamp)