Mail Model plugin

Plugin details

The Mailmodel plugin provides a mechanism to send a notification whenever an ActiveRecord model is saved. This is useful if you want to quickly set up notifications for a site to handle things like new comments, new users, or whatever, rather than having to hand-craft a message for each one. Think of it as scaffolding for email notifications.

Repositoryhttp://svn.dedasys.com/public/mailmodel/ Author David N. Welton Tags mail, notify LicenseRuby's (MIT)

Documentation

Install the plugin:
ruby script/plugin install http://svn.dedasys.com/public/mailmodel/

Usage
==========

Specify the email sender/destination:

  Mailmodel::Modelmailer.sender_address = %w(beebop@dedasys.com)

  Mailmodel::Modelmailer.destination_address =
    %("Squeezed Notifications" )


In models that you want notifications for, do this:

  after_save :mail_model

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago