Sha256: dcff29497054d50cb04cc5f48951660765b3b44f2040f92405d0df080cdd97c7

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

require 'rails/generators/job/job_generator'
require 'generators/rails/base'

module Rails
  module Generators
    class 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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_generator-4.0.6 lib/generators/rails/job_generator.rb
active_generator-4.0.5 lib/generators/rails/job_generator.rb
active_generator-4.0.4 lib/generators/rails/job_generator.rb
active_generator-4.0.3 lib/generators/rails/job_generator.rb
active_generator-4.0.2 lib/generators/rails/job_generator.rb