Class: Rails::Generators::MailerGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
lib/rails/generators/mailer/mailer_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_mailer_fileObject


9
10
11
# File 'lib/rails/generators/mailer/mailer_generator.rb', line 9

def create_mailer_file
  template "mailer.rb", File.join('app/mailers', class_path, "#{file_name}.rb")
end