Skip to content
ReePrime
Loading formats...

ActiveModel Callbacks in Sandra

T
teachmetocode

21 views • Oct 30, 2011

Description

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.

Discover more