What is purpose of around_create callback in Rails Model?

前端 未结 6 1992
野的像风
野的像风 2021-02-05 15:42

when is around_create callback code executed, in what situations we should use it?

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 15:43

    A classic use-case for the "around" filters is to measure performance, or log or do other state monitoring or modification.

提交回复
热议问题