提交 943c60d2 编写于 作者: E eparreno 提交者: Mikel Lindsaar

AR validations & callbacks: update callbacks list

上级 62fd6d8c
......@@ -879,32 +879,28 @@ Here is a list with all the available Active Record callbacks, listed in the sam
h4. Creating an Object
* +before_validation+
* +before_validation_on_create+
* +after_validation+
* +after_validation_on_create+
* +before_save+
* +after_save+
* +before_create+
* INSERT OPERATION
* +around_create+
* +after_create+
* +after_save+
h4. Updating an Object
* +before_validation+
* +before_validation_on_update+
* +after_validation+
* +after_validation_on_update+
* +before_save+
* +after_save+
* +before_update+
* UPDATE OPERATION
* +around_update+
* +after_update+
* +after_save+
h4. Destroying an Object
* +before_destroy+
* DELETE OPERATION
* +after_destroy+
* +around_destroy+
WARNING. +after_save+ runs both on create and update, but always _after_ the more specific callbacks +after_create+ and +after_update+, no matter the order in which the macro calls were executed.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册