diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-12 14:25:10 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-12 14:25:10 +0100 |
commit | 2a12686832fbcf0566454904a5d733998506bf56 (patch) | |
tree | ef6da03a35679c59a1673694277f7d34a16fcc92 /actionmailer/lib/action_mailer/base.rb | |
parent | 16846553b8866eab2aa3b128a2a23a221a25f7e3 (diff) | |
download | rails-2a12686832fbcf0566454904a5d733998506bf56.tar.gz rails-2a12686832fbcf0566454904a5d733998506bf56.tar.bz2 rails-2a12686832fbcf0566454904a5d733998506bf56.zip |
Allow anything that responds to render to be given as :template and use find_template instead of find in views.
Diffstat (limited to 'actionmailer/lib/action_mailer/base.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index ef3820ad67..f94e23fe05 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -605,7 +605,7 @@ module ActionMailer #:nodoc: each_template(templates_path, templates_name) do |template| responses << { - :body => render(:_template => template), + :body => render(:template => template), :content_type => template.mime_type.to_s } end |