Class: Effective::Generators::ModelGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Effective::Generators::ModelGenerator
- Includes:
- Helpers
- Defined in:
- lib/generators/effective/model_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_model ⇒ Object
22 23 24 |
# File 'lib/generators/effective/model_generator.rb', line 22 def create_model template "#{scaffold_path}/models/model.rb", resource.model_file end |
#invoke_model ⇒ Object
18 19 20 |
# File 'lib/generators/effective/model_generator.rb', line 18 def invoke_model say_status :invoke, :model, :white end |