Sha256: ef3a6496ebb4ad2965a6e22d16261601f5ed7a7c657e5159214f0f200da4594f

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

require 'rails/generators/erb/scaffold/scaffold_generator'

module Erb
  module Generators
    class ScaffoldGenerator

      def generate_locale_file
        invoke('locale:view', [name]) if ActiveGenerator.configuration.autoload_view_generator_locale
      end

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

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_generator-2.4.0 lib/generators/rails/scaffold_generator.rb
active_generator-2.3.1 lib/generators/rails/scaffold_generator.rb