diff --git a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb index c77cb6ab5e..d5bf864595 100644 --- a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb +++ b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb @@ -1,13 +1,11 @@ -module Rails # :nodoc: - module Generators # :nodoc: - # Implements the Rails::Generators for creating new mailers. +module Rails + module Generators 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