diff options
author | Zachary Scott <zachary@zacharyscott.net> | 2013-05-15 00:48:31 -0400 |
---|---|---|
committer | Zachary Scott <zachary@zacharyscott.net> | 2013-05-15 00:48:31 -0400 |
commit | dfb69f2b8a85586ad70071baba416747cbb07364 (patch) | |
tree | 1022e0d41e4762aa79e64c1e558ad4d2fee85545 /actionmailer | |
parent | 328e876a1569058e47eaf7ea3f4f045a83b585fa (diff) | |
download | rails-dfb69f2b8a85586ad70071baba416747cbb07364.tar.gz rails-dfb69f2b8a85586ad70071baba416747cbb07364.tar.bz2 rails-dfb69f2b8a85586ad70071baba416747cbb07364.zip |
Document Rails::Generators::MailerGenerator
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/lib/rails/generators/mailer/mailer_generator.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb index d5bf864595..c77cb6ab5e 100644 --- a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb +++ b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb @@ -1,11 +1,13 @@ -module Rails - module Generators +module Rails # :nodoc: + module Generators # :nodoc: + # Implements the Rails::Generators for creating new mailers. class MailerGenerator < NamedBase source_root File.expand_path("../templates", __FILE__) argument :actions, type: :array, default: [], banner: "method method" check_class_collision + # Generates the mailer file for the application. def create_mailer_file template "mailer.rb", File.join('app/mailers', class_path, "#{file_name}.rb") end |