Class: RedisOrm::Generators::ModelGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_model_fileObject



14
15
16
# File 'lib/rails/generators/redis_orm/model/model_generator.rb', line 14

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