]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/map/_bounds.xml.builder
Avoid using @variables in partials
[rails.git] / app / views / api / map / _bounds.xml.builder
index 85cca01f90a27cc06c94e2b8b7c25d73b0616b1c..8a38e21ea8cf16ee52d5a9f8a6d01cda503b431e 100644 (file)
@@ -1,8 +1,8 @@
 attrs = {
-  "minlat" => format("%.7f", @bounds.min_lat),
-  "minlon" => format("%.7f", @bounds.min_lon),
-  "maxlat" => format("%.7f", @bounds.max_lat),
-  "maxlon" => format("%.7f", @bounds.max_lon)
+  "minlat" => format("%.7f", bounds.min_lat),
+  "minlon" => format("%.7f", bounds.min_lon),
+  "maxlat" => format("%.7f", bounds.max_lat),
+  "maxlon" => format("%.7f", bounds.max_lon)
 }
 
 xml.bounds(attrs)