slim-template/slim-rails

View on GitHub
lib/generators/slim/mailer/mailer_generator.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "rails/generators/erb/mailer/mailer_generator"

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

      protected

      def format
        :text
      end

      def formats
        [:text, :html]
      end

      def handler
        :slim
      end
    end
  end
end