Module: Rollgeist::Patches::Transactions
- Defined in:
- lib/rollgeist/patches/transactions.rb
Instance Method Summary collapse
Instance Method Details
#committed!(*args, **kwargs) ⇒ Object
6 7 8 9 10 |
# File 'lib/rollgeist/patches/transactions.rb', line 6 def committed!(*args, **kwargs) result = super Rollgeist.clear_record_state!(self) result end |
#rolledback!(*args, **kwargs) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rollgeist/patches/transactions.rb', line 12 def rolledback!(*args, **kwargs) snapshot = Rollgeist.rollback_snapshot(self) result = super if snapshot Rollgeist.attach_mark!(self, snapshot) else Rollgeist.clear_transaction_write_state!(self) end result end |