]> git.openstreetmap.org Git - rails.git/commitdiff
Coerce the API version to a string
authorTom Hughes <tom@compton.nu>
Sat, 24 Sep 2011 16:02:27 +0000 (17:02 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 24 Sep 2011 16:02:27 +0000 (17:02 +0100)
lib/osm.rb

index eaee7c328032f0373073b7f70aab777f20c169a0..60e33c7db8fd6e31ac5ce66fe6972c318322f419 100644 (file)
@@ -440,7 +440,7 @@ module OSM
       doc = XML::Document.new
       doc.encoding = XML::Encoding::UTF_8
       root = XML::Node.new 'osm'
       doc = XML::Document.new
       doc.encoding = XML::Encoding::UTF_8
       root = XML::Node.new 'osm'
-      root['version'] = API_VERSION
+      root['version'] = API_VERSION.to_s
       root['generator'] = GENERATOR
       doc.root = root
       return doc
       root['generator'] = GENERATOR
       doc.root = root
       return doc