]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_way_controller.rb
Set defaults properly on redaction model, and remove unnecessary
[rails.git] / app / controllers / old_way_controller.rb
index 9c3a257c47154de102a3651ee1cb1fdba3016159..dae0957b30b0cceb868b475b0d57a48be7f6f727 100644 (file)
@@ -1,4 +1,13 @@
-class OldWayController < ApplicationController
+class OldWayController < OldController
 
+  private
+  
+  def lookup_old_element
+    @old_element = OldWay.find([params[:id], params[:version]])
+  end
 
+  def lookup_old_elements_via_current
+    way = Way.find(params[:id])
+    @elements = way.old_ways
+  end
 end