]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
api06: Move version-checking into the models, raising an exception on mismatch
[rails.git] / app / controllers / api_controller.rb
index 6ede9ebe809a8389058fe90c24cd81989e082e37..d7937cb01d8db241072e1de2d1b841486fce84b4 100644 (file)
@@ -252,8 +252,8 @@ class ApiController < ApplicationController
 
     api = XML::Node.new 'api'
     version = XML::Node.new 'version'
-    version['minimum'] = '0.5';
-    version['maximum'] = '0.5';
+    version['minimum'] = "#{API_VERSION}";
+    version['maximum'] = "#{API_VERSION}";
     api << version
     area = XML::Node.new 'area'
     area['maximum'] = MAX_REQUEST_AREA.to_s;