Sha256: 998086c81a6cb45bbfa549adee7381b0b0dd5981e783e9789bbfc8612dbe0b69

Contents?: true

Size: 506 Bytes

Versions: 6

Compression:

Stored size: 506 Bytes

Contents

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

module Rails
  module Generators
    class HelperGenerator
      include Rails::Base

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

      def generate_test_file
        framework = configuration.test_framework

        return if framework.nil?
        invoke("#{framework}:helper", [name]) rescue nil
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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