]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_relation_controller.rb
Improve date display in user notes list
[rails.git] / app / controllers / old_relation_controller.rb
index ffb06bf5e9010bea85398ad983e992d51752f5e0..0cb3b2747e2e76e781a1e217d1b474c13d2a2c14 100644 (file)
@@ -6,8 +6,7 @@ class OldRelationController < OldController
     @old_element = OldRelation.find([params[:id], params[:version]])
   end
 
-  def lookup_old_elements_via_current
-    relation = Relation.find(params[:id])
-    @elements = relation.old_relations
+  def lookup_old_element_versions
+    @elements = OldRelation.where(:relation_id => params[:id]).order(:version)
   end
 end