]> git.openstreetmap.org Git - rails.git/commitdiff
Make creating a bbox object from a string work.
authorTom Hughes <tom@compton.nu>
Sun, 7 Jun 2009 16:32:24 +0000 (16:32 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 7 Jun 2009 16:32:24 +0000 (16:32 +0000)
lib/bounding_box.rb

index d943768ad67e489f1f74199dd8c9b328947a7914..30bbebb8d928ed056f591a5361b56c613363248e 100644 (file)
@@ -4,7 +4,7 @@ class BoundingBox
   end
 
   def self.from_s(s)
-    BoundingBox.new(s.split(/,/))
+    BoundingBox.new(*s.split(/,/))
   end
 
   def min_lon