trabajo-afectivo/lib/import/transaction_factory.rb

15 lines
258 B
Ruby
Raw Normal View History

module Import
module TransactionFactory
include Import::BaseFactory
# rubocop:disable Style/ModuleFunction
extend self
def import(records)
ActiveRecord::Base.transaction do
import_action(records)
end
end
end
end