Class: Upgrow::Generators::ModelGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Upgrow::Generators::ModelGenerator
- Includes:
- Helper
- Defined in:
- lib/generators/upgrow/model/model_generator.rb
Instance Method Summary collapse
Methods included from Helper
#class_name, included, #module_namespacing, #move_file, #namespace_content
Instance Method Details
#create_model_file ⇒ Object
10 11 12 13 14 15 |
# File 'lib/generators/upgrow/model/model_generator.rb', line 10 def create_model_file template( 'model.rb', File.join('app/models', class_path, "#{file_name}.rb") ) end |