Sha256: 70eacd9e16138d2a502b5f342a3396437f3d789dac83e280b8c58ed9f93df1e8
Contents?: true
Size: 1016 Bytes
Versions: 1
Compression:
Stored size: 1016 Bytes
Contents
require "rails/generators" 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::MailerGenerator.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.3 | lib/active_generator.rb |