]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/map/index.xml.builder
Avoid using @variables in partials
[rails.git] / app / views / api / map / index.xml.builder
index bd70f20bdcbeb53c3816eca1254c867d4a069618..841ea8384d73f145ff10f9f416d78e6301271a73 100644 (file)
@@ -1,7 +1,7 @@
 xml.instruct!
 
 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
-  osm << (render(:partial => "bounds") || "")
+  osm << (render(:partial => "bounds", :object => @bounds) || "")
   osm << (render(:partial => "node", :collection => @nodes) || "")
   osm << (render(:partial => "way", :collection => @ways) || "")
   osm << (render(:partial => "relation", :collection => @relations) || "")