]> git.openstreetmap.org Git - rails.git/commitdiff
Make capabilities report the current version for from/to version
authorChristopher Schmidt <crschmidt@crschmidt.net>
Sun, 11 May 2008 21:23:38 +0000 (21:23 +0000)
committerChristopher Schmidt <crschmidt@crschmidt.net>
Sun, 11 May 2008 21:23:38 +0000 (21:23 +0000)
identifier

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;