ActiveModel Callbacks in Sandra

  • 13 years ago
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.