Sha256: f839c9a082d853b96ed9a92164f69e9c821895df885b0bb0cca8772619784577
Contents?: true
Size: 964 Bytes
Versions: 6
Compression:
Stored size: 964 Bytes
Contents
require 'rails/generators/erb/mailer/mailer_generator' require 'rails/generators/mailer/mailer_generator' require 'generators/rails/base' module Erb module Generators class MailerGenerator 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 MailerGenerator include Rails::Base def generate_locale_file invoke('locale:mailer', [name]) if configuration.autoload_mailer_generator_locale end def generate_test_file framework = configuration.test_framework return if framework.nil? invoke("#{framework}:mailer", [name]) rescue nil end end end end
Version data entries
6 entries across 6 versions & 1 rubygems