Module: ActiveRecordCompose::TransactionSupport
- Extended by:
- ActiveSupport::Callbacks::ClassMethods, ActiveSupport::Concern
- Includes:
- ActiveRecord::Transactions, ActiveSupport::Callbacks
- Included in:
- Model, Persistence
- Defined in:
- lib/active_record_compose/transaction_support.rb,
lib/active_record_compose/transaction_support/active_transaction.rb,
lib/active_record_compose/transaction_support/transaction_coordinator.rb,
sig/_internal/package_private.rbs
Defined Under Namespace
Classes: ActiveTransaction
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.after_commit ⇒ Object
124
|
# File 'sig/_internal/package_private.rbs', line 124
def self.after_commit: (*untyped) -> untyped
|
.after_rollback ⇒ Object
125
|
# File 'sig/_internal/package_private.rbs', line 125
def self.after_rollback: (*untyped) -> untyped
|
.before_commit ⇒ Object
123
|
# File 'sig/_internal/package_private.rbs', line 123
def self.before_commit: (*untyped) -> untyped
|
Instance Method Details
#_run_before_commit_callbacks ⇒ Object
129
|
# File 'sig/_internal/package_private.rbs', line 129
def _run_before_commit_callbacks: () -> untyped
|
#_run_commit_callbacks ⇒ Object
130
|
# File 'sig/_internal/package_private.rbs', line 130
def _run_commit_callbacks: () -> untyped
|
#_run_rollback_callbacks ⇒ Object
131
|
# File 'sig/_internal/package_private.rbs', line 131
def _run_rollback_callbacks: () -> untyped
|
135
|
# File 'sig/_internal/package_private.rbs', line 135
def models: -> ComposedCollection
|
#save(**options) ⇒ Boolean
105
|
# File 'lib/active_record_compose/transaction_support.rb', line 105
def save(**options) = with_transaction_returning_status { super }
|
#save!(**options) ⇒ Object
107
|
# File 'lib/active_record_compose/transaction_support.rb', line 107
def save!(**options) = with_transaction_returning_status { super }
|