Method: Petra::Components::TransactionManager#reset_transaction
- Defined in:
- lib/petra/components/transaction_manager.rb
#reset_transaction ⇒ Object
Resets the currently innermost transaction. This means that everything this transaction has done so far will be discarded and the identifier freed again. TODO: Nested transactions again, what would happen?
66 67 68 69 |
# File 'lib/petra/components/transaction_manager.rb', line 66 def reset_transaction @stack.last.reset! fail Petra::AbortTransaction end |