]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/old_ways_controller.rb
66f3ce38bbce861d3b798ccb2331e7fbab6c9dcb
[rails.git] / app / controllers / api / old_ways_controller.rb
1 module Api
2   class OldWaysController < OldController
3     private
4
5     def lookup_old_element
6       @old_element = OldWay.find([params[:id], params[:version]])
7     end
8
9     def lookup_old_element_versions
10       @elements = OldWay.where(:way_id => params[:id]).order(:version)
11     end
12   end
13 end