class ActiveRecord::ConnectionAdapters::SavepointTransaction

:nodoc:

def initialize(connection, parent, options = {})

:nodoc:
def initialize(connection, parent, options = {})
  if options[:isolation]
    raise ActiveRecord::TransactionIsolationError, "cannot set transaction isolation in a nested transaction"
  end
  super
  connection.create_savepoint
end

def perform_commit

def perform_commit
  @state.set_state(:committed)
  @state.parent = parent.state
  connection.release_savepoint
end

def perform_rollback

def perform_rollback
  connection.rollback_to_savepoint
  rollback_records
end