X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/970e1a99d7dce64f0631e88c5b9f060fb48d75fe..c555c912047c8d0d23123093a729aa87ca642aee:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 9877b8bb8..9586094ff 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -271,7 +271,7 @@ class Way < ActiveRecord::Base clone.save! tags = self.tags - WayTag.delete_all(:way_id => id) + WayTag.where(:way_id => id).delete_all tags.each do |k, v| tag = WayTag.new tag.way_id = id @@ -281,7 +281,7 @@ class Way < ActiveRecord::Base end nds = self.nds - WayNode.delete_all(:way_id => id) + WayNode.where(:way_id => id).delete_all sequence = 1 nds.each do |n| nd = WayNode.new