From 8b9a3d3c576ebfa53391669698c18181c86d92d4 Mon Sep 17 00:00:00 2001 From: Sangyong Sim Date: Tue, 29 May 2018 16:09:22 +0900 Subject: [PATCH] Do not use assets & layout on mail. It has inline css & was intended. --- app/mailers/kuroko2/application_mailer.rb | 2 +- app/views/layouts/mailer.html.erb | 13 ------------- app/views/layouts/mailer.text.erb | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 app/views/layouts/mailer.html.erb delete mode 100644 app/views/layouts/mailer.text.erb diff --git a/app/mailers/kuroko2/application_mailer.rb b/app/mailers/kuroko2/application_mailer.rb index 1ad0f203..b5375a0a 100644 --- a/app/mailers/kuroko2/application_mailer.rb +++ b/app/mailers/kuroko2/application_mailer.rb @@ -1,6 +1,6 @@ module Kuroko2 class ApplicationMailer < ActionMailer::Base default from: 'from@example.com' - layout 'mailer' + layout false end end diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb deleted file mode 100644 index 9632fba0..00000000 --- a/app/views/layouts/mailer.html.erb +++ /dev/null @@ -1,13 +0,0 @@ - - - - Kuroko2 - <%= stylesheet_link_tag "kuroko2/application", media: "all" %> - <%= javascript_include_tag "kuroko2/application" %> - - - -<%= yield %> - - - diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb deleted file mode 100644 index 37f0bddb..00000000 --- a/app/views/layouts/mailer.text.erb +++ /dev/null @@ -1 +0,0 @@ -<%= yield %>