ROR Callbacks函数

 Active Record Callbacks:

## 3.1 Creating an Object
before_validation
after_validation
before_save
around_save
before_create
around_create
after_create
after_save
## 3.2 Updating an Object
before_validation
after_validation
before_save
around_save
before_update
around_update
after_update
after_save
## 3.3 Destroying an Object
before_destroy
around_destroy
after_destroy

 

 

你可能感兴趣的:(callback)