From f0f4cb2f64566020b6edd48e0a81fd744ffc2e4c Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 13 May 2016 15:02:36 +0900 Subject: generate mailer layout files if it does not already exist Currently, if `ApplicationMailer` does not exist, it is generated when run the mailer generator, but layouts files does not generate. However, because it uses the layouts in `ApplicationMailer`, layouts are required. Follow up to #24161 --- .../generators/erb/mailer/templates/layout.html.erb.tt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 railties/lib/rails/generators/erb/mailer/templates/layout.html.erb.tt (limited to 'railties/lib/rails/generators/erb/mailer/templates/layout.html.erb.tt') diff --git a/railties/lib/rails/generators/erb/mailer/templates/layout.html.erb.tt b/railties/lib/rails/generators/erb/mailer/templates/layout.html.erb.tt new file mode 100644 index 0000000000..55f3675d49 --- /dev/null +++ b/railties/lib/rails/generators/erb/mailer/templates/layout.html.erb.tt @@ -0,0 +1,13 @@ + + + + + + + + + <%%= yield %> + + -- cgit v1.2.3