Here is the first cut at a plugin I created, called Mailmodel. It’s pretty simple, you install it, configure the email sender/destination addresses, and then, in your ActiveRecord objects:
For those objects that you want to be notified of when they change. Think of it as ‘scaffolding’ for email notification of changes in your database (new comments, new users, new payments) when you aren’t quite ready to set up notification for each individual thing.
Some improvements that could be made:
Customize behavior for some objects: if it’s a this, then include that and that in the object dump.
Customized templates depending on object type in order to take the scaffoling analogy further.