Sha256: a9fe0df9ba4834e604a7c83b5e55e85f583d60a275ad8c30f8dfa2609e33f177
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
require 'rails/generators/erb/mailer/mailer_generator' require 'rails/generators/mailer/mailer_generator' module Erb module Generators class MailerGenerator def generate_locale_file invoke('locale:view'.freeze, [name]) if ActiveGenerator.configuration.autoload_view_generator_locale end def generate_test_file unless ActiveGenerator.configuration.test_framework.nil? invoke("#{ActiveGenerator.configuration.test_framework}:view", [name]) rescue nil end end end end end module Rails module Generators class MailerGenerator def generate_locale_file invoke('locale:mailer'.freeze, [name]) if ActiveGenerator.configuration.autoload_mailer_generator_locale end def generate_test_file unless ActiveGenerator.configuration.test_framework.nil? invoke("#{ActiveGenerator.configuration.test_framework}:mailer", [name]) rescue nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_generator-2.3.0 | lib/generators/rails/mailer_generator.rb |