X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/109e69efc186113380eccca35bfdb4bd83365db5..a402e811dac1f999dcf623ce6099e554d76c6de4:/app/models/way.rb?ds=inline 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