transaction_factory.rb 272 B

1234567891011121314
  1. module Import
  2. module TransactionFactory
  3. include Import::BaseFactory
  4. # rubocop:disable Style/ModuleFunction
  5. extend self
  6. def import(records, *args)
  7. ActiveRecord::Base.transaction do
  8. import_action(records, *args)
  9. end
  10. end
  11. end
  12. end