Class: Rails::Generators::JobGenerator

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

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_generator_rootObject



14
15
16
# File 'lib/rails/generators/job/job_generator.rb', line 14

def self.default_generator_root
  File.dirname(__FILE__)
end

Instance Method Details

#create_job_fileObject



18
19
20
# File 'lib/rails/generators/job/job_generator.rb', line 18

def create_job_file
  template 'job.rb', File.join('app/jobs', class_path, "#{file_name}_job.rb")
end