@@ -217,7 +217,7 class Mailer < ActionMailer::Base | |||||
217 | def render_message(method_name, body) |
|
217 | def render_message(method_name, body) | |
218 | layout = method_name.match(%r{text\.html\.(rhtml|rxml)}) ? 'layout.text.html.rhtml' : 'layout.text.plain.rhtml' |
|
218 | layout = method_name.match(%r{text\.html\.(rhtml|rxml)}) ? 'layout.text.html.rhtml' : 'layout.text.plain.rhtml' | |
219 | body[:content_for_layout] = render(:file => method_name, :body => body) |
|
219 | body[:content_for_layout] = render(:file => method_name, :body => body) | |
220 | ActionView::Base.new(template_root, body, self).render(:file => "mailer/#{layout}") |
|
220 | ActionView::Base.new(template_root, body, self).render(:file => "mailer/#{layout}", :use_full_path => true) | |
221 | end |
|
221 | end | |
222 |
|
222 | |||
223 | # Makes partial rendering work with Rails 1.2 (retro-compatibility) |
|
223 | # Makes partial rendering work with Rails 1.2 (retro-compatibility) |
General Comments 0
You need to be logged in to leave comments.
Login now