before_filter :authorize
after_filter :compress_output
+ helper :user
+ model :user
+
+ 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
# get missing nodes if there are any
nodes += Node.find(missing_nodes) if missing_nodes.length > 0
- doc = OSM::API.get_xml_doc
+ doc = OSM::API.new.get_xml_doc
# get ways
# find which ways are needed