1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/lib
Justin S. Leitgeb 4f28c4fc9a Add ability to define callbacks in ActionMailer using AbstractController::Callbacks.
Prior to this commit, there isn't a good way of adding things like
default inline attachments to an email.  This Stack Overflow thread
shows people using hooks like the 'default' method in ActionMailer::Base
to call a Proc for message configuration:

http://stackoverflow.com/questions/5113121/rails-use-same-attachment-for-all-emails-using-layout

This has the unintended side effect of setting a message header, so it's not a good solution.

This pull request adds support for message modifications by including AbstractController:Callbacks
in ActionMailer::Base. It includes tests and documentation for the functionality
provided by including this module.
2012-03-11 14:05:31 -05:00
..
action_mailer Add ability to define callbacks in ActionMailer using AbstractController::Callbacks. 2012-03-11 14:05:31 -05:00
rails/generators/mailer Correct grammar on Mailer generator -- passES. Working on enhancing conventional readability in README and USAGE files. 2011-12-22 21:03:25 -08:00
action_mailer.rb Merge pull request #4248 from andrew/2012 2011-12-31 12:48:19 -08:00