#COUNT is the number of map requests to allow before exiting and starting a new process
@@count = COUNT
- def authorize_web
- @current_user = User.find_by_token(session[:token])
- end
-
# The maximum area you're allowed to request, in square degrees
MAX_REQUEST_AREA = 0.25
unless segment.preconditions_ok? # are the nodes visible?
render :nothing => true, :status => HTTP_PRECONDITION_FAILED
+ return
end
if segment.save_with_history
end
ordered_segments.each do |seg_id|
- if seg_id
+ if seg_id and seg_id != '0'
e = XML::Node.new 'seg'
e['id'] = seg_id
el1 << e