]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Remove conditions from delete_all
[rails.git] / app / models / trace.rb
index 8179dad22cac99db918bbc69d4d059e6f10e9184..eed09dbe536b3b268067837eb6000fc57711d104 100644 (file)
@@ -261,7 +261,7 @@ class Trace < ActiveRecord::Base
     first = true
 
     # If there are any existing points for this trace then delete them
-    Tracepoint.delete_all(:gpx_id => id)
+    Tracepoint.where(:gpx_id => id).delete_all
 
     gpx.points do |point|
       if first