In the Jots (like tweets) in JotRod, I needed to generate a hash on creation as the key for the Jots. So, I determined that the easiest way to do that was to include ActiveModel Callbacks.
The module is pretty simple to add to your classes. Here's a demo of how to add it to Sandra.
In the Jots (like tweets) in JotRod, I needed to generate a hash on creation as the key for the Jots. So, I determined that the easiest way to do that was to include ActiveModel Callbacks.
The module is pretty simple to add to your classes. Here's a demo of how to add it to Sandra.