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 6ede9eb..d7937cb 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;