]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_node_controller.rb
Update to iD v1.3.6
[rails.git] / app / controllers / old_node_controller.rb
index 0b6a0ee290612cd6c366c69a404314af505262ac..16f33013ee1c01e251f34a19d177118c338f9e97 100644 (file)
@@ -1,2 +1,12 @@
-class OldNodeController < ApplicationController
+class OldNodeController < OldController
+
+  private
+  
+  def lookup_old_element
+    @old_element = OldNode.find([params[:id], params[:version]])
+  end
+
+  def lookup_old_element_versions
+    @elements = OldNode.where(:node_id => params[:id]).order(:version)
+  end
 end