]> git.openstreetmap.org Git - rails.git/blobdiff - lib/bounding_box.rb
Standardise on double quoted strings
[rails.git] / lib / bounding_box.rb
index a8ae1d99c0c7e423cf71cbf1dd527e46581c6360..6fa133e0608df052a2fd7e1f844088fae12c50c9 100644 (file)
@@ -16,12 +16,12 @@ class BoundingBox
   end
 
   def self.from_s(s)
-    BoundingBox.new(*s.split(/,/)) if s.count(',') == 3
+    BoundingBox.new(*s.split(/,/)) if s.count(",") == 3
   end
 
   def self.from_bbox_params(params)
-    if params[:bbox] && params[:bbox].count(',') == 3
-      bbox_array = params[:bbox].split(',')
+    if params[:bbox] && params[:bbox].count(",") == 3
+      bbox_array = params[:bbox].split(",")
     end
     from_bbox_array(bbox_array)
   end