Module: ArTransactionChanges

Defined in:
lib/ar_transaction_changes.rb,
lib/ar_transaction_changes/version.rb

Constant Summary collapse

VERSION =
"1.1.3"

Instance Method Summary collapse

Instance Method Details

#_run_commit_callbacksObject



5
6
7
8
9
# File 'lib/ar_transaction_changes.rb', line 5

def _run_commit_callbacks
  super
ensure
  @transaction_changed_attributes = nil
end

#_run_rollback_callbacksObject



11
12
13
14
15
# File 'lib/ar_transaction_changes.rb', line 11

def _run_rollback_callbacks
  super
ensure
  @transaction_changed_attributes = nil
end

#transaction_changed_attributesObject



17
18
19
# File 'lib/ar_transaction_changes.rb', line 17

def transaction_changed_attributes
  @transaction_changed_attributes ||= HashWithIndifferentAccess.new
end