Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v5.2.3) is shown here.
rollback_active_record_state!()
public
Reset id and @new_record if the transaction rolls
back.
# File activerecord/lib/active_record/transactions.rb, line 323
def rollback_active_record_state!
remember_transaction_record_state
yield
rescue Exception
restore_transaction_record_state
raise
ensure
clear_transaction_record_state
end