blob: c47a8bd1daa28032832992db26973b142efca356 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
module BulkImports
module Groups
module Pipelines
class SubgroupEntitiesPipeline
include Pipeline
extractor BulkImports::Groups::Extractors::SubgroupsExtractor
transformer Common::Transformers::ProhibitedAttributesTransformer
transformer BulkImports::Groups::Transformers::SubgroupToEntityTransformer
def load(context, data)
context.bulk_import.entities.create!(data)
end
end
end
end
end
|