Class: Rails::Generators::MailFormGenerator
- Inherits:
-
NamedBase
- Object
- NamedBase
- Rails::Generators::MailFormGenerator
- Defined in:
- lib/generators/rails/mail_form_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/rails/mail_form_generator.rb', line 4 def self.source_root @_mail_form_source_root ||= File.("../templates", __FILE__) end |
Instance Method Details
#create_model_file ⇒ Object
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 |