]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up of render_multipart() at app/models/mailer.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 23 Sep 2011 06:59:39 +0000 (06:59 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 23 Sep 2011 06:59:39 +0000 (06:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7466 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index 8fcc3fbe0b53503ed0d48fcadc28f2eb09cc1166..d0dac72c693ab08100b48fd8b3c762be0f2d5763 100644 (file)
@@ -418,11 +418,16 @@ 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 => body, :layout => 'mailer.text.plain.erb')
+      body render(:file => "#{method_name}.text.plain.rhtml",
+                  :body => body,
+                  :layout => 'mailer.text.plain.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')
-      part :content_type => "text/html", :body => render_message("#{method_name}.text.html.rhtml", body)
+      part :content_type => "text/plain",
+           :body => render(:file => "#{method_name}.text.plain.rhtml",
+                           :body => body, :layout => 'mailer.text.plain.erb')
+      part :content_type => "text/html",
+           :body => render_message("#{method_name}.text.html.rhtml", body)
     end
   end