RubyOnRails: Order ActiveRecord callbacks and add missing methods (#1789)

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
This commit is contained in:
Luis Ezcurdia 2022-02-20 17:37:42 -06:00 committed by GitHub
parent 301d6b07f5
commit c84d4c1b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -586,8 +586,13 @@ See: <http://api.rubyonrails.org/classes/ActiveRecord/Base.html>
Callbacks
---------
- after_create
- after_initialize
- after_validation
- after_save
- before_validation / after_validation
- before_save / after_save / around_save
- before_create / after_create / around_create
- before_update / after_update / around_update
- before_destroy / after_destroy / around_destroy
- after_commit
- after_rollback
See: [ActiveRecord Callbacks](https://guides.rubyonrails.org/active_record_callbacks.html)