Sha256: ec2d756d3b83b9e1842d978f70a54111551ef15c66b89030ad873b66910b807d
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require 'rails/generators/erb/controller/controller_generator' require 'rails/generators/rails/controller/controller_generator' require 'generators/rails/base' module Erb module Generators class ControllerGenerator 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 module Rails module Generators class ControllerGenerator include Rails::Base def generate_locale_file invoke('locale:controller', [name]) if configuration.autoload_controller_generator_locale end def generate_test_file framework = configuration.test_framework return if framework.nil? invoke("#{framework}:controller", [name]) rescue nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_generator-5.2.0 | lib/generators/rails/controller_generator.rb |
active_generator-5.1.0 | lib/generators/rails/controller_generator.rb |