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:
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
|
||||
end
|
||||
|
||||
# Executes +method+ within a transaction and captures its return value as a
|
||||
# status flag. If the status is true the transaction is committed, otherwise
|
||||
# a ROLLBACK is issued. In any case the status flag is returned.
|
||||
# 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 a ROLLBACK is issued. In any case, the status flag is returned.
|
||||
#
|
||||
# This method is available within the context of an ActiveRecord::Base
|
||||
# instance.
|
||||
|
Loading…
Reference in New Issue
Block a user