transaction_factory.rb 341 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 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, *)
  8. ActiveRecord::Base.transaction do
  9. import_action(records, *)
  10. end
  11. end
  12. end
  13. end