From: Tom Hughes Date: Sat, 24 Sep 2011 16:02:27 +0000 (+0100) Subject: Coerce the API version to a string X-Git-Tag: live~6219 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c98328a8f87dae7f77ed5453dcc100f5f927b898?hp=e1166881366ffc9ce912eeabfc6f41a91fc4e989 Coerce the API version to a string --- diff --git a/lib/osm.rb b/lib/osm.rb index eaee7c328..60e33c7db 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -440,7 +440,7 @@ module 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