debian-mirror-gitlab/lib/bulk_imports/common/loaders/entity_loader.rb
2021-01-29 00:20:46 +05:30

15 lines
282 B
Ruby

# 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