module TorqueBox::Transactions::Transaction
The default module mixed into the Manager
. Adapters for various resources are expected to override these methods as appropriate for their library. See ActiveRecordAdapters::Transaction
, for example.
Public Instance Methods
commit()
click to toggle source
# File lib/torquebox/transactions.rb, line 40 def commit @tm.commit end
error( exception )
click to toggle source
# File lib/torquebox/transactions.rb, line 48 def error( exception ) puts "Transaction rollback: #{exception}" rollback raise end
prepare()
click to toggle source
# File lib/torquebox/transactions.rb, line 36 def prepare @tm.begin end
rollback()
click to toggle source
# File lib/torquebox/transactions.rb, line 44 def rollback @tm.rollback end