core/rails/lib/api_helper.rb
# Run a transaction with a lock on the table this class uses
Run a transaction with a lock on the table this class uses
Run a transaction with a lock on the table this class uses
def locked_transaction(&block)
      unless connection.open_transactions.zero?
        raise "locked_transaction cannot be called from within another transaction!"
      end
      unsafe_locked_transaction do
        yield if block_given?
      end
    end
def locked_transaction ( & block ) unless connection . open_transactions . zero? raise "locked_transaction cannot be called from within another transaction!" end unsafe_locked_transaction do yield if block_given? end end
Run a transaction with a lock on the table this class uses
Run a transaction with a lock on the table this class uses
block
<not_specific>