From a441eabc25a129d1137c0584c52428d905c1f464 Mon Sep 17 00:00:00 2001 From: Dustin Pearson <30442914+Wittiest@users.noreply.github.com> Date: Sat, 12 Jun 2021 12:53:52 -0700 Subject: [PATCH] Fix inaccurate callback documentation --- guides/source/active_record_callbacks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md index 5861aea397..7c32631d94 100644 --- a/guides/source/active_record_callbacks.md +++ b/guides/source/active_record_callbacks.md @@ -494,7 +494,7 @@ WARNING. When a transaction completes, the `after_commit` or `after_rollback` ca WARNING. The code executed within `after_commit` or `after_rollback` callbacks is itself not enclosed within a transaction. -WARNING. Using both `after_create_commit` and `after_update_commit` in the same model will only allow the last callback defined to take effect, and will override all others. +WARNING. Using both `after_create_commit` and `after_update_commit` with the same method name will only allow the last callback defined to take effect, as they both internally alias to `after_commit` which overrides previously defined callbacks with the same method name. ```ruby class User < ApplicationRecord