X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/afcb345014d98914cd4f5d6b14ca2e30feac194c..90ec90f13db277d992c40e6242bbd66a211c1987:/app/models/changeset.rb diff --git a/app/models/changeset.rb b/app/models/changeset.rb index d41a82989..53078b2e8 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -85,6 +85,10 @@ class Changeset < ActiveRecord::Base def bbox @bbox ||= [ min_lon, min_lat, max_lon, max_lat ] end + + def has_valid_bbox? + not bbox.include? nil + end ## # expand the bounding box to include the given bounding box. also,