aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/import/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/import/base.rb')
-rw-r--r--app/models/import/base.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/import/base.rb b/app/models/import/base.rb
index f98e359d4..333fb0f56 100644
--- a/app/models/import/base.rb
+++ b/app/models/import/base.rb
@@ -39,6 +39,14 @@ class Import::Base < ApplicationModel
private
+ def failed!
+ update status: :failed
+ end
+
+ def aborted!
+ update status: :aborted
+ end
+
def initialize_fields
super
self.token_download ||= SecureRandom.urlsafe_base64