Sha256: bf90c842e3b2e4ac6d162afa0fcb7303ca21f2087cb36cb8e3ed70ddf1eca4bf
Contents?: true
Size: 502 Bytes
Versions: 6
Compression:
Stored size: 502 Bytes
Contents
require 'rails/generators/erb/scaffold/scaffold_generator' require 'generators/rails/base' module Erb module Generators class ScaffoldGenerator include Rails::Base def generate_locale_file invoke('locale:view', [name]) if configuration.autoload_view_generator_locale end def generate_test_file framework = configuration.test_framework return if framework.nil? invoke("#{framework}:view", [name]) rescue nil end end end end
Version data entries
6 entries across 6 versions & 1 rubygems