Sha256: bea8d218c3e429a3b3f6cb2a64f9ed5c2fcde126580aa89b3fb1050dbebda5dc

Contents?: true

Size: 974 Bytes

Versions: 1

Compression:

Stored size: 974 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", [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", [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-3.0.0 lib/generators/rails/mailer_generator.rb