X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c8b70c1c7279b4ddaf4910c77b6dbc237c0c67e1..152cb13a02dfcb2966b8a9b29382f84a99a23a69:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 0c27e5460..3b3f92432 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -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