ReePrime
ActiveModel Callbacks in Sandra

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

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.