Sha256: 3b2f80d2019dcc3400c29006564e8d55008e8d28b5f60151270941776fe12d3b

Contents?: true

Size: 579 Bytes

Versions: 15

Compression:

Stored size: 579 Bytes

Contents

require "dm-core"

module Ldap
  class NoopTransaction
    
    def close ; end
    def begin ; end
    def prepare ; end
    def commit ; end
    def rollback ; end
    def rollback_prepared ; end
    
  end
end

module DataMapper
  module Adapters
    class LdapAdapter
      def transaction_primitive
        ::Ldap::NoopTransaction.new
      end
      def push_transaction(transaction)
        @transaction = transaction
      end

      def pop_transaction
        @transaction
      end
      
      def current_transaction
        @transaction
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dm-ldap-adapter-0.4.7 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.8 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.6 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.6-java lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.5-java lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.5 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.4-java lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.4 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.3-java lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.3 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.2 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.1 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.0 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.0.alpha4 lib/adapters/noop_transaction.rb
dm-ldap-adapter-0.4.0.alpha3 lib/adapters/noop_transaction.rb