Skip to content

Commit 7aac5d6

Browse files
committed
remove duplication about finalized callback raising
1 parent 5fbc6e2 commit 7aac5d6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

activerecord/lib/active_record/transaction.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ def after_commit(&block)
101101
#
102102
# If the entire chain of nested transactions are all successfully committed,
103103
# the block is never called.
104-
#
105-
# If the transaction is already finalized, attempting to register a callback
106-
# will raise ActiveRecord::ActiveRecordError.
107104
def after_rollback(&block)
108105
@internal_transaction&.after_rollback(&block)
109106
end

0 commit comments

Comments
 (0)