aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/lib/action_mailer/base.rb')
-rw-r--r--actionmailer/lib/action_mailer/base.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 8595b1e063..5b6e7121b3 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -974,9 +974,8 @@ module ActionMailer
each_template(Array(templates_path), templates_name).map do |template|
format = template.format || self.formats.first
- self.formats = [format]
{
- body: render(template: template),
+ body: render(template: template, formats: [format]),
content_type: Mime[format].to_s
}
end