]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Migration to add close-time to changesets. This replaces the boolean 'open' attribute...
[rails.git] / app / models / way.rb
index 0c27e54606414e3e0986036a281955b25f13528c..3b3f9243283e64eee1ec27b7d34ac97e2db7d0df 100644 (file)
@@ -233,6 +233,10 @@ class Way < ActiveRecord::Base
       # update and commit the bounding box, now that way nodes 
       # have been updated and we're in a transaction.
       changeset.update_bbox!(bbox) unless nodes.empty?
+
+      # tell the changeset we updated one element only
+      changeset.add_changes! 1
+
       changeset.save!
     end
   end