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: 8644f3c9dcbe3cb8c2bfcd8dfe2389f0633c530d (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.bulk_import.entities.create!(entity)
        end
      end
    end
  end
end