edge badge
Methods
C
F
N
R
Class Public methods
new(connection, savepoint_name, options, *args)
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 104
def initialize(connection, savepoint_name, options, *args)
  super(connection, options, *args)
  if options[:isolation]
    raise ActiveRecord::TransactionIsolationError, "cannot set transaction isolation in a nested transaction"
  end
  connection.create_savepoint(@savepoint_name = savepoint_name)
end
Instance Public methods
commit()
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 117
def commit
  connection.release_savepoint(savepoint_name)
  super
end
full_rollback?()
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 122
def full_rollback?; false; end
rollback()
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 112
def rollback
  connection.rollback_to_savepoint(savepoint_name)
  super
end