Class: MongoModel::Generators::ModelGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/rails/generators/mongo_model/model/model_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_model_fileObject


15
16
17
# File 'lib/rails/generators/mongo_model/model/model_generator.rb', line 15

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