]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_node_controller.rb
Added authorization + issues dashboard
[rails.git] / app / controllers / old_node_controller.rb
index 0b6a0ee290612cd6c366c69a404314af505262ac..a32e299fe6a2481833b901fd3995ceec475809d5 100644 (file)
@@ -1,2 +1,11 @@
-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