aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-01-15 16:18:18 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-01-15 16:18:18 +0900
commitfc3de9118e90c6deaba88a9a68325d3c1ce41c25 (patch)
treeba7069cd2d0ddb5981f07db7bfb9edbd440994cd /railties/lib
parentb2874aec105c277b6008cb8d73ffd106a12b444b (diff)
downloadrails-fc3de9118e90c6deaba88a9a68325d3c1ce41c25.tar.gz
rails-fc3de9118e90c6deaba88a9a68325d3c1ce41c25.tar.bz2
rails-fc3de9118e90c6deaba88a9a68325d3c1ce41c25.zip
add application_mailer.rb to template of mountable engine
since 9446e38ba47c9ca3be2ad668d8a8bea0141be6fc, generated mailer inherents from ApplicationMailer, ApplicationMailer is required in the mountable engine.
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/plugin/templates/app/mailers/%namespaced_name%/application_mailer.rb.tt7
-rw-r--r--railties/lib/rails/generators/rails/plugin/templates/app/mailers/.empty_directory0
2 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/app/mailers/%namespaced_name%/application_mailer.rb.tt b/railties/lib/rails/generators/rails/plugin/templates/app/mailers/%namespaced_name%/application_mailer.rb.tt
new file mode 100644
index 0000000000..09aac13f42
--- /dev/null
+++ b/railties/lib/rails/generators/rails/plugin/templates/app/mailers/%namespaced_name%/application_mailer.rb.tt
@@ -0,0 +1,7 @@
+<%= wrap_in_modules <<-rb.strip_heredoc
+ class ApplicationMailer < ActionMailer::Base
+ default from: 'from@example.com'
+ layout 'mailer'
+ end
+rb
+%>
diff --git a/railties/lib/rails/generators/rails/plugin/templates/app/mailers/.empty_directory b/railties/lib/rails/generators/rails/plugin/templates/app/mailers/.empty_directory
deleted file mode 100644
index e69de29bb2..0000000000
--- a/railties/lib/rails/generators/rails/plugin/templates/app/mailers/.empty_directory
+++ /dev/null