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/action_mailer
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
..
base.rb Add ability to define callbacks in ActionMailer using AbstractController::Callbacks. 2012-03-11 14:05:31 -05:00
collector.rb format lookup for partials is derived from the format in which the template is being rendered 2012-02-22 11:12:03 -02:00
delivery_methods.rb singularize module and be explicit about what is delivered 2011-06-21 10:20:01 -04:00
log_subscriber.rb Array.wrap is no longer needed here 2012-01-05 16:24:48 -03:00
mail_helper.rb Merge branch 'master' of github.com:lifo/docrails 2012-02-18 22:02:34 +05:30
railtie.rb Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365 2011-12-12 17:11:07 +01:00
test_case.rb test cases should inherit from AS::TestCase 2012-01-05 17:05:43 -08:00
test_helper.rb remove unnecessary AS::Concern usage 2012-01-22 22:19:29 +03:00
version.rb rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00