]> git.openstreetmap.org Git - rails.git/blob - app/controllers/old_nodes_controller.rb
Use CanCanCan for messages controller
[rails.git] / app / controllers / old_nodes_controller.rb
1 class OldNodesController < OldController
2   private
3
4   def lookup_old_element
5     @old_element = OldNode.find([params[:id], params[:version]])
6   end
7
8   def lookup_old_element_versions
9     @elements = OldNode.where(:node_id => params[:id]).order(:version)
10   end
11 end