aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib
diff options
context:
space:
mode:
authorCarl Lerche & Yehuda Katz <wycats@gmail.com>2009-04-16 11:57:27 -0700
committerCarl Lerche & Yehuda Katz <wycats@gmail.com>2009-04-16 11:57:27 -0700
commitb49027e188466e55179f737906590a5feb8fea95 (patch)
tree2ac003c344da0dd90f59473940634c600b3a94c1 /actionmailer/lib
parent256b0ee8e3c1610967dfc89f864e24b98ed3c236 (diff)
downloadrails-b49027e188466e55179f737906590a5feb8fea95.tar.gz
rails-b49027e188466e55179f737906590a5feb8fea95.tar.bz2
rails-b49027e188466e55179f737906590a5feb8fea95.zip
Make more Template methods public to make ActionMailer tests pass
Diffstat (limited to 'actionmailer/lib')
-rw-r--r--actionmailer/lib/action_mailer/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 88932eb96f..9eee5783a0 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -474,7 +474,7 @@ module ActionMailer #:nodoc:
# have not already been specified manually.
if @parts.empty?
Dir.glob("#{template_path}/#{@template}.*").each do |path|
- template = template_root.find_template("#{mailer_name}/#{File.basename(path)}")
+ template = template_root.find_by_parts("#{mailer_name}/#{File.basename(path)}")
# Skip unless template has a multipart format
next unless template && template.multipart?