]> git.openstreetmap.org Git - rails.git/blob - app/controllers/old_relation_controller.rb
Use current_user instead of @user.
[rails.git] / app / controllers / old_relation_controller.rb
1 class OldRelationController < 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