trabajo-afectivo/lib/import/transaction_factory.rb
2022-01-01 14:38:12 +01:00

16 lines
349 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
module Import
module TransactionFactory
include Import::BaseFactory
# rubocop:disable Style/ModuleFunction
extend self
def import(records, *args)
ActiveRecord::Base.transaction do
import_action(records, *args)
end
end
end
end