response.last_modified = node.timestamp
if node.visible
- @nodes = [node]
+ @node = node
# Render the result
respond_to do |format|
@elements.unredacted
end
- @elems = []
-
- visible_elements.each do |element|
- @elems << element
- end
+ @elems = visible_elements
# Render the result
respond_to do |format|
else
response.last_modified = @old_element.timestamp
- @elems = [@old_element]
-
# Render the result
respond_to do |format|
format.xml
relation = Relation.find(params[:id])
response.last_modified = relation.timestamp
if relation.visible
- @relations = [relation]
+ @relation = relation
# Render the result
respond_to do |format|
response.last_modified = way.timestamp
if way.visible
- @ways = [way]
+ @way = way
# Render the result
respond_to do |format|
end
end
- @ways = [way]
+ @way = way
# Render the result
respond_to do |format|
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(@nodes) || "")
+ osm << (render(@node) || "")
end
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(@elems) || "")
+ osm << (render(@old_element) || "")
end
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(@elems) || "")
+ osm << (render(@old_element) || "")
end
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(@elems) || "")
+ osm << (render(@old_element) || "")
end
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(@relations) || "")
+ osm << (render(@relation) || "")
end
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
osm << (render(@nodes) || "")
- osm << (render(@ways) || "")
+ osm << (render(@way) || "")
end
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(@ways) || "")
+ osm << (render(@way) || "")
end