summaryrefslogtreecommitdiff
path: root/lib/bulk_imports/common/loaders/entity_loader.rb
blob: 4540b892c888a4c40a236b095749ae29c468b7b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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