]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/permissions.builder
Refactor reportable_url to just return the url
[rails.git] / app / views / api / permissions.builder
index 066f5678877965f76ba3915ec50d76867015d270..6d26a9e532521d05f826c3a38edb8a9d0462bb8e 100644 (file)
@@ -1,6 +1,6 @@
 # create list of permissions
 # create list of permissions
-xml.instruct! :xml, :version=>"1.0"
-xml.osm("version" => "#{API_VERSION}", "generator" => "OpenStreetMap Server") do
+xml.instruct! :xml, :version => "1.0"
+xml.osm("version" => API_VERSION.to_s, "generator" => "OpenStreetMap Server") do
   xml.permissions do
     @permissions.each do |permission|
       xml.permission :name => permission
   xml.permissions do
     @permissions.each do |permission|
       xml.permission :name => permission