Class: ActiveRecord::ConnectionAdapters::Transaction
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(connection) ⇒ Transaction
constructor
A new instance of Transaction.
- #state ⇒ Object
Constructor Details
#initialize(connection) ⇒ Transaction
Returns a new instance of Transaction.
6 7 8 9 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 6 def initialize(connection) @connection = connection @state = TransactionState.new end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection
4 5 6 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 4 def connection @connection end |
Instance Method Details
#state ⇒ Object
11 12 13 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 11 def state @state end |