Module: TransactionChanges

Extended by:
ActiveSupport::Concern
Includes:
ActiveSupport::Callbacks
Defined in:
lib/transaction_changes.rb,
lib/transaction_changes/version.rb

Constant Summary collapse

VERSION =
"2.2.2"

Instance Method Summary collapse

Instance Method Details

#_run_commit_callbacksObject



18
19
20
21
22
# File 'lib/transaction_changes.rb', line 18

def _run_commit_callbacks
  super
ensure
  @old_transaction_changes = HashWithIndifferentAccess.new
end

#_run_rollback_callbacksObject



24
25
26
27
28
# File 'lib/transaction_changes.rb', line 24

def _run_rollback_callbacks
  super
ensure
  @old_transaction_changes = HashWithIndifferentAccess.new
end

#transaction_changesObject



14
15
16
# File 'lib/transaction_changes.rb', line 14

def transaction_changes
  @old_transaction_changes || HashWithIndifferentAccess.new
end