Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/pipeline/context.rb')
-rw-r--r--lib/bulk_imports/pipeline/context.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bulk_imports/pipeline/context.rb b/lib/bulk_imports/pipeline/context.rb
index d753f888671..fde24cf3646 100644
--- a/lib/bulk_imports/pipeline/context.rb
+++ b/lib/bulk_imports/pipeline/context.rb
@@ -32,6 +32,10 @@ module BulkImports
@bulk_import ||= entity.bulk_import
end
+ def bulk_import_id
+ @bulk_import_id ||= bulk_import.id
+ end
+
def current_user
@current_user ||= bulk_import.user
end