Fixes the documentation of with_transaction_returning_status

This method was refactored in d916c62, but the documentation was not updated.
This commit is contained in:
Xavier Noria 2023-07-21 13:07:55 +02:00
parent ea9b647806
commit 5a36344334

@ -347,9 +347,9 @@ def rolledback!(force_restore_state: false, should_run_callbacks: true) # :nodoc
@_trigger_update_callback = @_trigger_destroy_callback = false if force_restore_state @_trigger_update_callback = @_trigger_destroy_callback = false if force_restore_state
end end
# Executes +method+ within a transaction and captures its return value as a # Executes a block within a transaction and captures its return value as a
# status flag. If the status is true the transaction is committed, otherwise # status flag. If the status is true, the transaction is committed,
# a ROLLBACK is issued. In any case the status flag is returned. # otherwise a ROLLBACK is issued. In any case, the status flag is returned.
# #
# This method is available within the context of an ActiveRecord::Base # This method is available within the context of an ActiveRecord::Base
# instance. # instance.