Sha256: cc7586d9f00dfe4a9bbdaa3c5ce3ffb79a41869bcf11aae1686c21f2586c8c83

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

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

module Fortitude
  module Generators
    class MailerGenerator < ::Erb::Generators::MailerGenerator
      source_root File.expand_path("../templates", __FILE__)

      def create_view_base
        generate "fortitude:base_view"
      end

      protected
      def handler
        :rb
      end

      def formats
        [:html]
      end

      def format
        :html
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fortitude-0.9.6-java lib/rails/generators/fortitude/mailer/mailer_generator.rb
fortitude-0.9.6 lib/rails/generators/fortitude/mailer/mailer_generator.rb