Sha256: 3a9ce3cbf0d229c0ea228c80e80f4c730bdff543ee93b7d40fdd6ea6835f88f8
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
require "rails/generators" require 'rails/generators/rails/controller/controller_generator' require 'rails/generators/rails/helper/helper_generator' require 'rails/generators/rails/model/model_generator' require "active_object" require "active_generator/version" require "generators/environment/environment_generator" require "generators/initializer/initializer_generator" require "generators/service/service_generator" %w(api controller helper job mailer model service uploader view).each do |name| require "generators/locale/#{name}/#{name}_generator" end Rails::Generators::ControllerGenerator.class_eval do def copy_locale_file invoke("locale:controller", [name]) invoke("locale:helper", [name]) end end # Rails::Generators::HelperGenerator.class_eval do # def copy_locale_file # invoke("locale:helper", [name]) # end # end # Rails::Generators::JobGenerator.class_eval do # def copy_locale_file # invoke("locale:job", [name]) # end # end # Rails::Generators::MailerGenerator.class_eval do # def copy_locale_file # invoke("locale:mailer", [name]) # end # end # Rails::Generators::ModelGenerator.class_eval do # def copy_locale_file # invoke("locale:model", [name]) # end # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_generator-2.0.4 | lib/active_generator.rb |