Sha256: 5523dc2dfcd49498b80dc0fe991ff5afdedfa2aa8ee0592b6f2f0c4b5c90f57f

Contents?: true

Size: 828 Bytes

Versions: 1

Compression:

Stored size: 828 Bytes

Contents

require 'rails/generators/erb/mailer/mailer_generator'
require 'rails/generators/mailer/mailer_generator'
require 'generators/rails/base'

class Erb::Generators::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

class Rails::Generators::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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_generator-4.0.1 lib/generators/rails/mailer_generator.rb