mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Small grammar fixes
Changed sentence to be more clear [ci skip]
This commit is contained in:
parent
393a7aad99
commit
58e971c2d1
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ end
|
|||
|
||||
WARNING. The `after_commit` and `after_rollback` callbacks are called for all models created, updated, or destroyed within a transaction block. However, if an exception is raised within one of these callbacks, the exception will bubble up and any remaining `after_commit` or `after_rollback` methods will _not_ be executed. As such, if your callback code could raise an exception, you'll need to rescue it and handle it within the callback in order to allow other callbacks to run.
|
||||
|
||||
WARNING. Using `after_create_commit` and `after_update_commit` both in the same model will override the callback which was registered first amongst them.
|
||||
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.
|
||||
|
||||
```ruby
|
||||
class User < ApplicationRecord
|
||||
|
|
Loading…
Reference in a new issue