diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-13 15:33:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-13 15:33:46 +0000 |
commit | 827e14eafe2618c25f58b8acf88fe7ef6c8ca226 (patch) | |
tree | 8bac6623b0e1cf46c5ff1a26703f181b2dde413d | |
parent | 8fac9233de92f8af1a428cf753a42bbfe4016993 (diff) | |
download | redmine-827e14eafe2618c25f58b8acf88fe7ef6c8ca226.tar.gz redmine-827e14eafe2618c25f58b8acf88fe7ef6c8ca226.zip |
Mailer compatibility with Rails 2.1.1.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1811 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/mailer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 61e5d596c..a2d9ddba5 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -217,7 +217,7 @@ class Mailer < ActionMailer::Base def render_message(method_name, body) layout = method_name.match(%r{text\.html\.(rhtml|rxml)}) ? 'layout.text.html.rhtml' : 'layout.text.plain.rhtml' body[:content_for_layout] = render(:file => method_name, :body => body) - ActionView::Base.new(template_root, body, self).render(:file => "mailer/#{layout}") + ActionView::Base.new(template_root, body, self).render(:file => "mailer/#{layout}", :use_full_path => true) end # Makes partial rendering work with Rails 1.2 (retro-compatibility) |