ReePrime China
ActiveModel Callbacks in Sandra

此内容来自第三方平台 (Dailymotion)。如果此视频侵犯了您的版权,请使用 立即删除 工具。

ActiveModel Callbacks in Sandra

21 次观看 08:13 teachmetocode

描述

For my Jot class in JotRod, I want the jot to set a hash of some kind as the key when it gets saved. This is the perfect scenario for using ActiveModels' callbacks functionality.

It only took a few minutes to get set up, but works great! Now I have a key set up whenever I try saving a Jot.