Sha256: 6a53b59de9c5248bc4b2e3aca5fb32431d682c6b5979996f1e32dd4fff489920

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

require 'rails/generators/rails/helper/helper_generator'

module Rails
  module Generators
    class HelperGenerator

      def generate_locale_file
        invoke('locale:helper'.freeze, [name]) if ActiveGenerator.configuration.autoload_helper_generator_locale
      end

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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_generator-2.3.0 lib/generators/rails/helper_generator.rb