]> git.openstreetmap.org Git - rails.git/blob - app/controllers/old_relation_controller.rb
L.hash expects parseHash to return false if there isn't a location
[rails.git] / app / controllers / old_relation_controller.rb
1 class OldRelationController < OldController
2
3   private
4   
5   def lookup_old_element
6     @old_element = OldRelation.find([params[:id], params[:version]])
7   end
8
9   def lookup_old_element_versions
10     @elements = OldRelation.where(:relation_id => params[:id]).order(:version)
11   end
12 end