Sha256: 98418d236f3cec0c4734367f92c512c977ab73d62862a87145de8292e6405c7c

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 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

1 entries across 1 versions & 1 rubygems

Version Path
active_generator-4.0.0 lib/generators/rails/job_generator.rb