debian-mirror-gitlab/lib/bulk_imports/common/loaders/entity_loader.rb

16 lines
275 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# frozen_string_literal: true
module BulkImports
module Common
module Loaders
class EntityLoader
def initialize(*args); end
def load(context, entity)
2021-03-11 19:13:27 +05:30
context.bulk_import.entities.create!(entity)
2021-01-29 00:20:46 +05:30
end
end
end
end
end