]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way.rb
Merge pull request #11 from danstowell/jsrouting-pulldownchange
[rails.git] / app / models / old_way.rb
index e5ba53852d76ee4fee03d83c08e6af50d2fa72d8..1552bae0497a10f0b8c5d896ff11d83251bdbf7a 100644 (file)
@@ -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)