transaction_factory.rb 349 B

12345678910111213141516
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module Import
  3. module TransactionFactory
  4. include Import::BaseFactory
  5. # rubocop:disable Style/ModuleFunction
  6. extend self
  7. def import(records, *args)
  8. ActiveRecord::Base.transaction do
  9. import_action(records, *args)
  10. end
  11. end
  12. end
  13. end