X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5cbd4038edb32b0304bd766e70fc680ea447b52b..dc2a2c8ebd1a11e4a64555fda22c6859a51defff:/lib/bounding_box.rb diff --git a/lib/bounding_box.rb b/lib/bounding_box.rb index a8ae1d99c..6fa133e06 100644 --- a/lib/bounding_box.rb +++ b/lib/bounding_box.rb @@ -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