Class: Toystore::Generators::ModelGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/toystore/model/model_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#create_model_fileObject



13
14
15
# File 'lib/generators/toystore/model/model_generator.rb', line 13

def create_model_file
  template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb")
end