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

16 lines
282 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)
context.entity.bulk_import.entities.create!(entity)
end
end
end
end
end