diff options
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_record_callbacks.md | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md index 8f54e78224..617f81d37b 100644 --- a/guides/source/active_record_callbacks.md +++ b/guides/source/active_record_callbacks.md @@ -495,11 +495,3 @@ end >> @user.save => User was saved to database ``` - -To register callbacks for both create and destroy actions, use `after_commit` instead. - -```ruby -class User < ApplicationRecord - after_commit :log_user_saved_to_db, on: [:create, :destroy] -end -``` |