]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_node_controller.rb
Merge remote-tracking branch 'upstream/pull/1895'
[rails.git] / app / controllers / old_node_controller.rb
index 7055c031cbf000b099b6955bcb778cc6e7312ece..a32e299fe6a2481833b901fd3995ceec475809d5 100644 (file)
@@ -1,13 +1,11 @@
 class OldNodeController < OldController
-
   private
-  
+
   def lookup_old_element
     @old_element = OldNode.find([params[:id], params[:version]])
   end
 
-  def lookup_old_elements_via_current
-    node = Node.find(params[:id])
-    @elements = node.old_nodes
+  def lookup_old_element_versions
+    @elements = OldNode.where(:node_id => params[:id]).order(:version)
   end
 end