Sha256: f920a497cd56bc967a23107b54ca4570332b7d540b1c9f20c8d6ec97e900a50c

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

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