Class: Rails::Generators::MailFormGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject


4
5
6
# File 'lib/generators/rails/mail_form_generator.rb', line 4

def self.source_root
  @_mail_form_source_root ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#create_model_fileObject


12
13
14
# File 'lib/generators/rails/mail_form_generator.rb', line 12

def create_model_file
  template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb")
end