瀏覽代碼

Rails3: mail: rename app/views/layouts/mailer.text.plain.erb to app/views/layouts/mailer.text.erb (#6317)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7534 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.3.0
Toshi MARUYAMA 12 年之前
父節點
當前提交
c534c9e984
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      app/models/mailer.rb
  2. 0
    0
      app/views/layouts/mailer.text.erb

+ 2
- 2
app/models/mailer.rb 查看文件

@@ -422,12 +422,12 @@ class Mailer < ActionMailer::Base
content_type "text/plain"
body render(:file => "#{method_name}.text.plain.rhtml",
:body => body,
:layout => 'mailer.text.plain.erb')
:layout => 'mailer.text.erb')
else
content_type "multipart/alternative"
part :content_type => "text/plain",
:body => render(:file => "#{method_name}.text.plain.rhtml",
:body => body, :layout => 'mailer.text.plain.erb')
:body => body, :layout => 'mailer.text.erb')
part :content_type => "text/html",
:body => render_message("#{method_name}.text.html.rhtml", body)
end

app/views/layouts/mailer.text.plain.erb → app/views/layouts/mailer.text.erb 查看文件


Loading…
取消
儲存