]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/relations_controller.rb
Remove non functioning changeset_cache, user_display_name_cache
[rails.git] / app / controllers / api / relations_controller.rb
index 9f125cfd3d83365e4e10b9155822d1f9b438d1cb..41f4e325afa8c21db018946b257775b312755d12 100644 (file)
@@ -25,7 +25,7 @@ module Api
       relation = Relation.find(params[:id])
       response.last_modified = relation.timestamp
       if relation.visible
-        @relations = [relation]
+        @relation = relation
 
         # Render the result
         respond_to do |format|
@@ -94,8 +94,6 @@ module Api
         nodes = Node.where(:id => node_ids.uniq).includes(:node_tags)
 
         visible_nodes = {}
-        # changeset_cache = {}
-        # user_display_name_cache = {}
 
         @nodes = []
         nodes.each do |node|