提交 60474375 编写于 作者: J Jesse Parsons 提交者: Jesse Parsons

Update active_record_callbacks.md

Co-authored-by: NJonathan Hefner <jonathan@hefner.pro>
上级 a31759ca
...@@ -431,7 +431,7 @@ end ...@@ -431,7 +431,7 @@ end
NOTE: The `:on` option specifies when a callback will be fired. If you NOTE: The `:on` option specifies when a callback will be fired. If you
don't supply the `:on` option the callback will fire for every action. don't supply the `:on` option the callback will fire for every action.
Since using `after_commit` callback only on create, update, or delete is Since using the `after_commit` callback only on create, update, or delete is
common, there are aliases for those operations: common, there are aliases for those operations:
* `after_create_commit` * `after_create_commit`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册