Sha256: 7552689d257ee052deab50baf652595a6bbf8cc31d37d0530ec6a448fcd6b900

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slim-rails-3.6.3 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.6.2 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.6.1 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.5.1 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.5.0 lib/generators/slim/mailer/mailer_generator.rb