X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/588b77244b6d77e667cc5ac0fd6d39b81df280e4..1efa0a1f99bc86bcd7a7977edbe85a6c3dd3d064:/app/controllers/api/old_relations_controller.rb diff --git a/app/controllers/api/old_relations_controller.rb b/app/controllers/api/old_relations_controller.rb index 4679384dd..c065c657d 100644 --- a/app/controllers/api/old_relations_controller.rb +++ b/app/controllers/api/old_relations_controller.rb @@ -3,11 +3,11 @@ module Api private def lookup_old_element - @old_element = OldRelation.find([params[:id], params[:version]]) + @old_element = OldRelation.find([params[:relation_id], params[:version]]) end def lookup_old_element_versions - @elements = OldRelation.where(:relation_id => params[:id]).order(:version) + @elements = OldRelation.where(:relation_id => params[:relation_id]).order(:version) end end end