lib/ledgerizer/locking.rb
# Raise an exception unless we're outside any transactions.
Raise an exception unless we're outside any transactions.
Raise an exception unless we ' re outside any transactions .
def ensure_outermost_transaction!
        min_transaction_level = Ledgerizer.definition.running_inside_transactional_fixtures ? 1 : 0
        unless Ledgerizer::Account.connection.open_transactions <= min_transaction_level
          fail LockMustBeOutermostTransaction
        end
      end
def ensure_outermost_transaction! min_transaction_level = Ledgerizer . definition . running_inside_transactional_fixtures ? 1 : 0 unless Ledgerizer :: Account . connection . open_transactions <= min_transaction_level fail LockMustBeOutermostTransaction end end
Raise an exception unless we're outside any transactions.
Raise an exception unless we ' re outside any transactions .