# frozen_string_literal: true
module Dynflow
  module TransactionAdapters
    class ActiveRecord < Abstract
      def transaction(&block)
        ::ActiveRecord::Base.transaction(&block)
      end

      def rollback
        raise ::ActiveRecord::Rollback
      end
    end
  end
end
