]> git.openstreetmap.org Git - rails.git/blob - app/controllers/old_relations_controller.rb
Merge remote-tracking branch 'upstream/pull/2083'
[rails.git] / app / controllers / old_relations_controller.rb
1 class OldRelationsController < OldController
2   private
3
4   def lookup_old_element
5     @old_element = OldRelation.find([params[:id], params[:version]])
6   end
7
8   def lookup_old_element_versions
9     @elements = OldRelation.where(:relation_id => params[:id]).order(:version)
10   end
11 end