Fix inaccurate callback documentation

This commit is contained in:
Dustin Pearson 2021-06-12 12:53:52 -07:00 committed by Dustin Pearson
parent 6d3acaf293
commit a441eabc25
1 changed files with 1 additions and 1 deletions

View File

@ -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