edge badge
Methods
C
N
R
Class Public methods
new(connection, options)
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 139
def initialize(connection, options)
  super
  if options[:isolation]
    connection.begin_isolated_db_transaction(options[:isolation])
  else
    connection.begin_db_transaction
  end
end
Instance Public methods
commit()
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 154
def commit
  connection.commit_db_transaction
  super
  commit_records
end
rollback()
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 148
def rollback
  connection.rollback_db_transaction
  super
  rollback_records
end