]> source.dussan.org Git - redmine.git/commitdiff
Rails3: mail: rename app/views/layouts/mailer.text.plain.erb to app/views/layouts...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Sep 2011 16:20:57 +0000 (16:20 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Sep 2011 16:20:57 +0000 (16:20 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7534 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb
app/views/layouts/mailer.text.erb [new file with mode: 0644]
app/views/layouts/mailer.text.plain.erb [deleted file]

index d0ee4b0b5f02215d072cdba5e87f2b0ac17378b7..f62e24d5129e942d4e3a805054f8aba68ec21862 100644 (file)
@@ -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
diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb
new file mode 100644 (file)
index 0000000..4b8c0b4
--- /dev/null
@@ -0,0 +1,4 @@
+<%= Setting.emails_header %>
+<%= yield %>
+-- 
+<%= Setting.emails_footer %>
diff --git a/app/views/layouts/mailer.text.plain.erb b/app/views/layouts/mailer.text.plain.erb
deleted file mode 100644 (file)
index 4b8c0b4..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<%= Setting.emails_header %>
-<%= yield %>
--- 
-<%= Setting.emails_footer %>