]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Remove fill rule style
[rails.git] / app / models / trace.rb
index 3ab25ce3098735a6058d1a94d053c8143483bdaa..818cc363b8629595bed5a4d842033f708598f14c 100644 (file)
@@ -267,6 +267,14 @@ class Trace < ApplicationRecord
     end
   end
 
+  def schedule_import
+    TraceImporterJob.new(self).enqueue(:priority => user.traces.where(:inserted => false).count)
+  end
+
+  def schedule_destruction
+    TraceDestroyerJob.perform_later(self)
+  end
+
   private
 
   def content_type(file)