X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/85f197b6df81cef19fe6a2a1cfc0429ea50051c7..a2cf9b5b9f568c614ad8bbf8a477326b01cefb57:/app/controllers/old_node_controller.rb?ds=sidebyside diff --git a/app/controllers/old_node_controller.rb b/app/controllers/old_node_controller.rb index 0b6a0ee29..a32e299fe 100644 --- a/app/controllers/old_node_controller.rb +++ b/app/controllers/old_node_controller.rb @@ -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