Sha256: d8207a9f3023e61c84896cc8237f0bcd1de19fba25b290670d6f435d8bb470ab

Contents?: true

Size: 395 Bytes

Versions: 7

Compression:

Stored size: 395 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

7 entries across 7 versions & 1 rubygems

Version Path
slim-rails-3.4.0 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.3.0 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.2.0 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.1.3 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.1.2 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.1.1 lib/generators/slim/mailer/mailer_generator.rb
slim-rails-3.1.0 lib/generators/slim/mailer/mailer_generator.rb