require 'rails/generators/job/job_generator' require 'generators/rails/base' class Rails::Generators::JobGenerator include Rails::Base def generate_locale_file invoke('locale:job', [name]) if configuration.autoload_job_generator_locale end def generate_test_file framework = configuration.test_framework return if framework.nil? invoke("#{framework}:job", [name]) rescue nil end end