X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/363155a2a86796d27ee9161f1ee9b74d6fa307e5..b9ae40d9784725b75e5b52f55659c80326656d8f:/app/controllers/api/relations_controller.rb diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index 9f125cfd3..41f4e325a 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -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|