summaryrefslogtreecommitdiff
path: root/lib/bulk_imports/common/loaders/entity_loader.rb
blob: 8644f3c9dcbe3cb8c2bfcd8dfe2389f0633c530d (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.bulk_import.entities.create!(entity)
        end
      end
    end
  end
end