]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset.rb
Remove duplication that is in the test helper. Adding tests for the passing of no...
[rails.git] / app / models / changeset.rb
index d41a8298940c5bdfd08f6632a27f12ddfa892a05..53078b2e892b3fe0a670cf2b2ddfc67d1dd6777f 100644 (file)
@@ -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,