diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-11-25 09:16:11 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-11-25 09:16:11 +0800 |
commit | 35628a44b2b8ccf6d1931222447c5ab27b19c7e7 (patch) | |
tree | 42832e866bbe4b3e8fae27ae002e200c4238bc4e /railties | |
parent | b8d8ce7ba8e5e83e9b41e48fb6ef449bd36a97e3 (diff) | |
download | rails-35628a44b2b8ccf6d1931222447c5ab27b19c7e7.tar.gz rails-35628a44b2b8ccf6d1931222447c5ab27b19c7e7.tar.bz2 rails-35628a44b2b8ccf6d1931222447c5ab27b19c7e7.zip |
MailerGenerator should inherit from Base.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/erb/mailer/mailer_generator.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb index a228484c11..e2f142fd02 100644 --- a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb +++ b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb @@ -1,8 +1,10 @@ -require 'rails/generators/erb/controller/controller_generator' +require 'rails/generators/erb' module Erb # :nodoc: module Generators # :nodoc: - class MailerGenerator < ControllerGenerator # :nodoc: + class MailerGenerator < Base # :nodoc: + argument :actions, type: :array, default: [], banner: "method method" + def copy_view_files view_base_path = File.join("app/views", class_path, file_name) empty_directory view_base_path @@ -20,7 +22,6 @@ module Erb # :nodoc: template filename_with_extensions(:layout, format), layout_path end end - end protected |