]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changesets/index.atom.builder
Rework trace index to use secondary-actions
[rails.git] / app / views / changesets / index.atom.builder
index 2bbae2cc277a9cd4d1172319351e4261de8065ed..3ab438b59f7dd14cd0839dfe11969639251bdf50 100644 (file)
@@ -72,14 +72,14 @@ atom_feed(:language => I18n.locale, :schema_date => 2009,
         end
       end
 
-      if changeset.has_valid_bbox?
+      if changeset.bbox_valid?
         bbox = changeset.bbox.to_unscaled
 
         # See http://georss.org/Encodings#Geometry
         lower_corner = "#{bbox.min_lat} #{bbox.min_lon}"
         upper_corner = "#{bbox.max_lat} #{bbox.max_lon}"
 
-        feed.georss :box, lower_corner + " " + upper_corner
+        feed.georss :box, "#{lower_corner} #{upper_corner}"
       end
     end
   end