Skip to content

Commit

Permalink
Fixed problem causes by leftover backup templates ending in tilde [st…
Browse files Browse the repository at this point in the history
…ate:committed #969]

Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
  • Loading branch information
MacksMind authored and dhh committed Sep 10, 2008
1 parent 704fc37 commit f3f7d16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer/base.rb
Expand Up @@ -466,7 +466,7 @@ def create!(method_name, *parameters) #:nodoc:
template = template_root["#{mailer_name}/#{File.basename(path)}"]

# Skip unless template has a multipart format
next unless template.multipart?
next unless template && template.multipart?

@parts << Part.new(
:content_type => template.content_type,
Expand Down
@@ -0,0 +1,10 @@
<html>
<body>
HTML formatted message to <strong><%= @recipient %></strong>.
</body>
</html>
<html>
<body>
HTML formatted message to <strong><%= @recipient %></strong>.
</body>
</html>

0 comments on commit f3f7d16

Please sign in to comment.