Sha256: c5388bbfc5653a411916d8521171c1f3602663b422e7508c39a58955e234981a

Contents?: true

Size: 338 Bytes

Versions: 37

Compression:

Stored size: 338 Bytes

Contents

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

      def rollback
        raise ::ActiveRecord::Rollback
      end

      def cleanup
        ::ActiveRecord::Base.clear_active_connections!
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
dynflow-0.8.36 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.35 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.34 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.33 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.32 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.31 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.30 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.29 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.28 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.27 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.26 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.25 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.24 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.23 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.22 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.21 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.20 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.19 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.18 lib/dynflow/transaction_adapters/active_record.rb
dynflow-0.8.17 lib/dynflow/transaction_adapters/active_record.rb