Class: ActiveRecord::ConnectionAdapters::ClosedTransaction

Inherits:
Transaction show all
Defined in:
activerecord/lib/active_record/connection_adapters/abstract/transaction.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Transaction

#connection

Instance Method Summary collapse

Methods inherited from Transaction

#initialize, #state

Constructor Details

This class inherits a constructor from ActiveRecord::ConnectionAdapters::Transaction

Instance Method Details

#add_record(record) ⇒ Object

This is a noop when there are no open transactions



64
65
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 64

def add_record(record)
end

#begin(options = {}) ⇒ Object



47
48
49
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 47

def begin(options = {})
  RealTransaction.new(connection, self, options)
end

#closed?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 51

def closed?
  true
end

#joinable?Boolean

Returns:

  • (Boolean)


59
60
61
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 59

def joinable?
  false
end

#numberObject



43
44
45
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 43

def number
  0
end

#open?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 55

def open?
  false
end