Class: Totoro::WorkerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/totoro/worker_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_config_fileObject



12
13
14
15
# File 'lib/generators/totoro/worker_generator.rb', line 12

def copy_config_file
  template 'worker.rb.erb',
           File.join('app/models/worker', "#{name.underscore}.rb")
end