Added test for relations_for_node where the relation had been deleted.

This commit is contained in:
Matt Amos 2008-10-21 11:38:13 +00:00
parent 6339473cb7
commit 498d695064
3 changed files with 36 additions and 10 deletions

View file

@ -185,7 +185,7 @@ class RelationController < ApplicationController
doc = OSM::API.new.get_xml_doc
Relation.find(relationids).each do |relation|
doc.root << relation.to_xml_node
doc.root << relation.to_xml_node if relation.visible
end
render :text => doc.to_s, :content_type => "text/xml"