class ActiveRecord::ConnectionAdapters::RealTransaction - activerecord-4.2.5.2 Documentation

# class ActiveRecord::ConnectionAdapters::RealTransaction

### Public Class Methods

new(connection, options) click to toggle source
Calls superclass method

    # File lib/active_record/connection_adapters/abstract/transaction.rb, line 135
    def initialize(connection, options)
      super
      if options[:isolation]
        connection.begin_isolated_db_transaction(options[:isolation])
      else
        connection.begin_db_transaction
      end
    end

### Public Instance Methods

commit() click to toggle source
Calls superclass method

    # File lib/active_record/connection_adapters/abstract/transaction.rb, line 150
    def commit
      connection.commit_db_transaction
      super
      commit_records
    end

rollback() click to toggle source
Calls superclass method

    # File lib/active_record/connection_adapters/abstract/transaction.rb, line 144
    def rollback
      connection.rollback_db_transaction
      super
      rollback_records
    end