2021-01-29 00:20:46 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module BulkImports
|
|
|
|
module Groups
|
|
|
|
module Pipelines
|
|
|
|
class SubgroupEntitiesPipeline
|
|
|
|
include Pipeline
|
|
|
|
|
|
|
|
extractor BulkImports::Groups::Extractors::SubgroupsExtractor
|
2021-02-22 17:27:13 +05:30
|
|
|
transformer Common::Transformers::ProhibitedAttributesTransformer
|
2021-01-29 00:20:46 +05:30
|
|
|
transformer BulkImports::Groups::Transformers::SubgroupToEntityTransformer
|
2021-04-17 20:07:23 +05:30
|
|
|
|
|
|
|
def load(context, data)
|
|
|
|
context.bulk_import.entities.create!(data)
|
|
|
|
end
|
2021-01-29 00:20:46 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|