Class: Rails::Generators::RedisGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
lib/generators/rails/redis_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_model_fileObject



12
13
14
# File 'lib/generators/rails/redis_generator.rb', line 12

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