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

entity_loader.rb « loaders « common « bulk_imports « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4540b892c888a4c40a236b095749ae29c468b7b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module BulkImports
  module Common
    module Loaders
      class EntityLoader
        def initialize(*args); end

        def load(context, entity)
          context.entity.bulk_import.entities.create!(entity)
        end
      end
    end
  end
end