Class: Effective::Generators::ModelGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Helpers
Defined in:
lib/generators/effective/model_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_modelObject



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_modelObject



18
19
20
# File 'lib/generators/effective/model_generator.rb', line 18

def invoke_model
  say_status :invoke, :model, :white
end