rails 回調函數

創建對象

before_validation

after_validation

before_save

around_save

before_create

around_create

after_create

after_save

after_commit/after_rollback

更新對象

before_validation

after_validation

before_save

around_save

before_update

around_update

after_update

after_save

after_commit/after_rollback

刪除對象

before_destroy

around_destroy

after_destroy

after_commit/after_rollback
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章