class Shinq::Generators::WorkerGenerator

Public Instance Methods

create_migration_file() click to toggle source
# File lib/generators/shinq/worker/worker_generator.rb, line 21
def create_migration_file
  migration_template 'create_table_migration.erb', "db/migrate/create_#{table_name}.rb"
end
create_worker_file() click to toggle source
# File lib/generators/shinq/worker/worker_generator.rb, line 25
def create_worker_file
  template 'worker.erb', File.join('app/workers', class_path, "#{file_name}.rb")
end