]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
segment stuff removed
[rails.git] / app / models / trace.rb
index 155e495a34b485b9123323088e45f58c2bfb2094..c189c035ec8fb3e4812c52d2d07d659c9a615b92 100644 (file)
@@ -210,7 +210,7 @@ class Trace < ActiveRecord::Base
         self.icon_picture = gpx.get_icon(min_lat, min_lon, max_lat, max_lon)
         self.size = gpx.actual_points
         self.inserted = true
-        self.save
+        self.save!
       end
 
       logger.info "done trace #{id}"