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


68
69
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 68

def add_record(record)
end

#begin(options = {}) ⇒ Object


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

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

#closed?Boolean

Returns:

  • (Boolean)

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

def closed?
  true
end

#joinable?Boolean

Returns:

  • (Boolean)

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

def joinable?
  false
end

#numberObject


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

def number
  0
end

#open?Boolean

Returns:

  • (Boolean)

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

def open?
  false
end