Class: Metro::GenerateModel

Inherits:
Generator
  • Object
show all
Defined in:
lib/commands/generate_model.rb

Instance Method Summary collapse

Methods inherited from Generator

source_root

Instance Method Details

#create_model_fileObject



19
20
21
# File 'lib/commands/generate_model.rb', line 19

def create_model_file
  template "model.rb.tt", "models/#{model_filename}.rb"
end