From b49027e188466e55179f737906590a5feb8fea95 Mon Sep 17 00:00:00 2001 From: Carl Lerche & Yehuda Katz Date: Thu, 16 Apr 2009 11:57:27 -0700 Subject: Make more Template methods public to make ActionMailer tests pass --- actionmailer/lib/action_mailer/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/lib') 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? -- cgit v1.2.3