From 16a257d4d0176dacf186e90eeb4ff1a37e1660af Mon Sep 17 00:00:00 2001 From: Brian Cardarella Date: Fri, 12 Aug 2016 21:24:46 -0400 Subject: Ensure app/mailers is removed when skipping action-mailer Closes #26145 --- railties/lib/rails/generators/rails/app/app_generator.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index bc666b9812..a1b1649547 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -324,6 +324,7 @@ module Rails remove_file "app/mailers/application_mailer.rb" remove_file "app/views/layouts/mailer.html.erb" remove_file "app/views/layouts/mailer.text.erb" + remove_dir "app/mailers" end end -- cgit v1.2.3