end
def show
- relation = Relation.find(params[:id])
- response.last_modified = relation.timestamp
- if relation.visible
- @relation = relation
-
+ @relation = Relation.find(params[:id])
+ response.last_modified = @relation.timestamp
+ if @relation.visible
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
else
head :gone
end
nodes = Node.where(:id => node_ids.uniq).includes(:node_tags)
visible_nodes = {}
- # changeset_cache = {}
- # user_display_name_cache = {}
@nodes = []
nodes.each do |node|
@relations << relation
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
else
head :gone
end
@relations = Relation.find(ids)
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
end
def relations_for_way
end
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
end
end
end