Skip to content

Commit

Permalink
RubyOnRails: Order ActiveRecord callbacks and add missing methods (rs…
Browse files Browse the repository at this point in the history
…tacruz#1789)

Co-authored-by: Rico Sta. Cruz <[email protected]>
  • Loading branch information
3zcurdia and rstacruz authored Feb 20, 2022
1 parent 301d6b0 commit c84d4c1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rails-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c84d4c1

Please sign in to comment.