diff options
author | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-22 13:27:20 +0100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-22 13:27:26 +0100 |
commit | dcb925369389fa98d1548b25504c8e3a07eaeea3 (patch) | |
tree | 76193b6a2b9f0f1f8ead54686f3238df84773472 /actionmailer/lib/action_mailer/deprecated_api.rb | |
parent | 6cf378aeb048e25037a11cabe6338cd893789258 (diff) | |
download | rails-dcb925369389fa98d1548b25504c8e3a07eaeea3.tar.gz rails-dcb925369389fa98d1548b25504c8e3a07eaeea3.tar.bz2 rails-dcb925369389fa98d1548b25504c8e3a07eaeea3.zip |
Add basic template rendering to new DSL.
Diffstat (limited to 'actionmailer/lib/action_mailer/deprecated_api.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/deprecated_api.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/actionmailer/lib/action_mailer/deprecated_api.rb b/actionmailer/lib/action_mailer/deprecated_api.rb index 90e2aebf53..b2bb6a64aa 100644 --- a/actionmailer/lib/action_mailer/deprecated_api.rb +++ b/actionmailer/lib/action_mailer/deprecated_api.rb @@ -120,19 +120,12 @@ module ActionMailer initialize_defaults(method_name) super unless @mail_was_called - # Create e-mail parts create_parts - - # Set the subject if not set yet - @subject ||= I18n.t(:subject, :scope => [:actionmailer, mailer_name, method_name], - :default => method_name.humanize) - - # Build the mail object itself create_mail end + @message end - # Add a part to a multipart message, with the given content-type. The # part itself is yielded to the block so that other properties (charset, # body, headers, etc.) can be set on it. |