Sha256: 2dff85e232bdfcd8820c309e5ed15e7c327f4646f7ddafbec1ec17ad934f7d6b

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

require "rails/generators/job/job_generator"

module Rails
  module Generators
    class JobGenerator

      def generate_locale_file
        invoke("locale:job", [name]) if ActiveGenerator.configuration.autoload_job_generator_locale
      end

      def generate_test_file
        unless ActiveGenerator.configuration.test_framework.nil?
          invoke("#{ActiveGenerator.configuration.test_framework}:job", [name]) rescue nil
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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