ソースを参照

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

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7536 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.3.0
Toshi MARUYAMA 12年前
コミット
a4c4edacfd

+ 2
- 2
app/models/mailer.rb ファイルの表示

@@ -420,13 +420,13 @@ class Mailer < ActionMailer::Base
def render_multipart(method_name, body)
if Setting.plain_text_mail?
content_type "text/plain"
body render(:file => "#{method_name}.text.plain.rhtml",
body render(:file => "#{method_name}.text.erb",
:body => body,
:layout => 'mailer.text.erb')
else
content_type "multipart/alternative"
part :content_type => "text/plain",
:body => render(:file => "#{method_name}.text.plain.rhtml",
:body => render(:file => "#{method_name}.text.erb",
:body => body, :layout => 'mailer.text.erb')
part :content_type => "text/html",
:body => render_message("#{method_name}.text.html.rhtml", body)

app/views/mailer/account_activated.text.plain.rhtml → app/views/mailer/account_activated.text.erb ファイルの表示


app/views/mailer/account_activation_request.text.plain.rhtml → app/views/mailer/account_activation_request.text.erb ファイルの表示


app/views/mailer/account_information.text.plain.rhtml → app/views/mailer/account_information.text.erb ファイルの表示


app/views/mailer/attachments_added.text.plain.rhtml → app/views/mailer/attachments_added.text.erb ファイルの表示


app/views/mailer/document_added.text.plain.rhtml → app/views/mailer/document_added.text.erb ファイルの表示


app/views/mailer/issue_add.text.plain.rhtml → app/views/mailer/issue_add.text.erb ファイルの表示


app/views/mailer/issue_edit.text.plain.rhtml → app/views/mailer/issue_edit.text.erb ファイルの表示


app/views/mailer/lost_password.text.plain.rhtml → app/views/mailer/lost_password.text.erb ファイルの表示


app/views/mailer/message_posted.text.plain.rhtml → app/views/mailer/message_posted.text.erb ファイルの表示


app/views/mailer/news_added.text.plain.rhtml → app/views/mailer/news_added.text.erb ファイルの表示


app/views/mailer/news_comment_added.text.plain.rhtml → app/views/mailer/news_comment_added.text.erb ファイルの表示


app/views/mailer/register.text.plain.rhtml → app/views/mailer/register.text.erb ファイルの表示


app/views/mailer/reminder.text.plain.rhtml → app/views/mailer/reminder.text.erb ファイルの表示


app/views/mailer/test.text.plain.rhtml → app/views/mailer/test.text.erb ファイルの表示


app/views/mailer/wiki_content_added.text.plain.rhtml → app/views/mailer/wiki_content_added.text.erb ファイルの表示


app/views/mailer/wiki_content_updated.text.plain.rhtml → app/views/mailer/wiki_content_updated.text.erb ファイルの表示


読み込み中…
キャンセル
保存