Sha256: 16b4892072df008da21c98cf2dd5aa33490cf5470a1a70aaf479e9c80059497a

Contents?: true

Size: 490 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
active_generator-2.2.8 lib/generators/rails/scaffold_generator.rb
active_generator-2.2.7 lib/generators/rails/scaffold_generator.rb
active_generator-2.2.6 lib/generators/rails/scaffold_generator.rb
active_generator-2.2.5 lib/generators/rails/scaffold_generator.rb