]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
remove debug stuff
[rails.git] / app / controllers / api_controller.rb
index f0ba325682c567f400c94d6bd0d398f1f9b9f804..ca4cbcbd7c3439304a6ed38179c25c6fb2ad6bfa 100644 (file)
@@ -1,7 +1,7 @@
 class ApiController < ApplicationController
 
   session :off
-  before_filter :check_read_availability, :except => [:capabilities]
+  before_filter :check_api_readable, :except => [:capabilities]
   after_filter :compress_output
 
   # Help methods for checking boundary sanity and area size
@@ -284,6 +284,9 @@ class ApiController < ApplicationController
     waynodes = XML::Node.new 'waynodes'
     waynodes['maximum'] = APP_CONFIG['max_number_of_way_nodes'].to_s
     api << waynodes
+    changesets = XML::Node.new 'changesets'
+    changesets['maximum_elements'] = Changeset::MAX_ELEMENTS.to_s
+    api << changesets
     
     doc.root << api