]> source.dussan.org Git - redmine.git/commitdiff
r18547@gaspard (orig r1811): jplang | 2008-09-13 17:33:46 +0200
authorNicolas Chuche <nicolas.chuche@barna.be>
Sun, 14 Sep 2008 15:33:30 +0000 (15:33 +0000)
committerNicolas Chuche <nicolas.chuche@barna.be>
Sun, 14 Sep 2008 15:33:30 +0000 (15:33 +0000)
 Mailer compatibility with Rails 2.1.1.

git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1841 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index 61e5d596cd242476041df5900237aa5e7e693d6b..a2d9ddba57abafe3072834df7f0ca15dc891587c 100644 (file)
@@ -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)