aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mailers
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-08-26 15:19:55 -0300
committerJosé Valim <jose.valim@gmail.com>2010-08-26 16:07:54 -0300
commit84cab320bc1faaddc142cbbb38713d3f29a8b07d (patch)
treef165c9c3a9d5544c194affc54382e02025cdf73c /actionmailer/test/mailers
parentd728f0858014cf284f501f169f13d8cd1da36ab7 (diff)
downloadrails-84cab320bc1faaddc142cbbb38713d3f29a8b07d.tar.gz
rails-84cab320bc1faaddc142cbbb38713d3f29a8b07d.tar.bz2
rails-84cab320bc1faaddc142cbbb38713d3f29a8b07d.zip
Ensure templates like template.html are found but still uses the proper virtual path.
Diffstat (limited to 'actionmailer/test/mailers')
-rw-r--r--actionmailer/test/mailers/base_mailer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionmailer/test/mailers/base_mailer.rb b/actionmailer/test/mailers/base_mailer.rb
index 2c6de36ccf..e89a5820cc 100644
--- a/actionmailer/test/mailers/base_mailer.rb
+++ b/actionmailer/test/mailers/base_mailer.rb
@@ -111,4 +111,8 @@ class BaseMailer < ActionMailer::Base
format.html { render :layout => layout_name }
end
end
+
+ def email_with_translations
+ body render("email_with_translations.html")
+ end
end