diff options
-rw-r--r-- | app/models/mailer.rb | 4 | ||||
-rw-r--r-- | app/views/mailer/account_activated.text.erb (renamed from app/views/mailer/account_activated.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/account_activation_request.text.erb (renamed from app/views/mailer/account_activation_request.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/account_information.text.erb (renamed from app/views/mailer/account_information.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/attachments_added.text.erb (renamed from app/views/mailer/attachments_added.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/document_added.text.erb (renamed from app/views/mailer/document_added.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/issue_add.text.erb (renamed from app/views/mailer/issue_add.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/issue_edit.text.erb (renamed from app/views/mailer/issue_edit.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/lost_password.text.erb (renamed from app/views/mailer/lost_password.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/message_posted.text.erb (renamed from app/views/mailer/message_posted.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/news_added.text.erb (renamed from app/views/mailer/news_added.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/news_comment_added.text.erb (renamed from app/views/mailer/news_comment_added.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/register.text.erb (renamed from app/views/mailer/register.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/reminder.text.erb (renamed from app/views/mailer/reminder.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/test.text.erb (renamed from app/views/mailer/test.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/wiki_content_added.text.erb (renamed from app/views/mailer/wiki_content_added.text.plain.rhtml) | 0 | ||||
-rw-r--r-- | app/views/mailer/wiki_content_updated.text.erb (renamed from app/views/mailer/wiki_content_updated.text.plain.rhtml) | 0 |
17 files changed, 2 insertions, 2 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index f62e24d51..591f4e97c 100644 --- a/app/models/mailer.rb +++ b/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) diff --git a/app/views/mailer/account_activated.text.plain.rhtml b/app/views/mailer/account_activated.text.erb index 4dac4fb80..4dac4fb80 100644 --- a/app/views/mailer/account_activated.text.plain.rhtml +++ b/app/views/mailer/account_activated.text.erb diff --git a/app/views/mailer/account_activation_request.text.plain.rhtml b/app/views/mailer/account_activation_request.text.erb index f431e22d3..f431e22d3 100644 --- a/app/views/mailer/account_activation_request.text.plain.rhtml +++ b/app/views/mailer/account_activation_request.text.erb diff --git a/app/views/mailer/account_information.text.plain.rhtml b/app/views/mailer/account_information.text.erb index 0a02566d9..0a02566d9 100644 --- a/app/views/mailer/account_information.text.plain.rhtml +++ b/app/views/mailer/account_information.text.erb diff --git a/app/views/mailer/attachments_added.text.plain.rhtml b/app/views/mailer/attachments_added.text.erb index 28cb8285e..28cb8285e 100644 --- a/app/views/mailer/attachments_added.text.plain.rhtml +++ b/app/views/mailer/attachments_added.text.erb diff --git a/app/views/mailer/document_added.text.plain.rhtml b/app/views/mailer/document_added.text.erb index a6a72829e..a6a72829e 100644 --- a/app/views/mailer/document_added.text.plain.rhtml +++ b/app/views/mailer/document_added.text.erb diff --git a/app/views/mailer/issue_add.text.plain.rhtml b/app/views/mailer/issue_add.text.erb index 19c1dcf5b..19c1dcf5b 100644 --- a/app/views/mailer/issue_add.text.plain.rhtml +++ b/app/views/mailer/issue_add.text.erb diff --git a/app/views/mailer/issue_edit.text.plain.rhtml b/app/views/mailer/issue_edit.text.erb index 870f8fa3a..870f8fa3a 100644 --- a/app/views/mailer/issue_edit.text.plain.rhtml +++ b/app/views/mailer/issue_edit.text.erb diff --git a/app/views/mailer/lost_password.text.plain.rhtml b/app/views/mailer/lost_password.text.erb index f5000ed7e..f5000ed7e 100644 --- a/app/views/mailer/lost_password.text.plain.rhtml +++ b/app/views/mailer/lost_password.text.erb diff --git a/app/views/mailer/message_posted.text.plain.rhtml b/app/views/mailer/message_posted.text.erb index ef6a3b3ae..ef6a3b3ae 100644 --- a/app/views/mailer/message_posted.text.plain.rhtml +++ b/app/views/mailer/message_posted.text.erb diff --git a/app/views/mailer/news_added.text.plain.rhtml b/app/views/mailer/news_added.text.erb index c8ae3035f..c8ae3035f 100644 --- a/app/views/mailer/news_added.text.plain.rhtml +++ b/app/views/mailer/news_added.text.erb diff --git a/app/views/mailer/news_comment_added.text.plain.rhtml b/app/views/mailer/news_comment_added.text.erb index aadbc37c0..aadbc37c0 100644 --- a/app/views/mailer/news_comment_added.text.plain.rhtml +++ b/app/views/mailer/news_comment_added.text.erb diff --git a/app/views/mailer/register.text.plain.rhtml b/app/views/mailer/register.text.erb index 102a15ee3..102a15ee3 100644 --- a/app/views/mailer/register.text.plain.rhtml +++ b/app/views/mailer/register.text.erb diff --git a/app/views/mailer/reminder.text.plain.rhtml b/app/views/mailer/reminder.text.erb index c9e27dc8d..c9e27dc8d 100644 --- a/app/views/mailer/reminder.text.plain.rhtml +++ b/app/views/mailer/reminder.text.erb diff --git a/app/views/mailer/test.text.plain.rhtml b/app/views/mailer/test.text.erb index 790d6ab22..790d6ab22 100644 --- a/app/views/mailer/test.text.plain.rhtml +++ b/app/views/mailer/test.text.erb diff --git a/app/views/mailer/wiki_content_added.text.plain.rhtml b/app/views/mailer/wiki_content_added.text.erb index 5e8c77fd9..5e8c77fd9 100644 --- a/app/views/mailer/wiki_content_added.text.plain.rhtml +++ b/app/views/mailer/wiki_content_added.text.erb diff --git a/app/views/mailer/wiki_content_updated.text.plain.rhtml b/app/views/mailer/wiki_content_updated.text.erb index 4b3a97360..4b3a97360 100644 --- a/app/views/mailer/wiki_content_updated.text.plain.rhtml +++ b/app/views/mailer/wiki_content_updated.text.erb |