Sha256: 5f0f36f9bf5cc6d286437d39974a83537ca4b21d132ff9c47a3f42999beb7c00

Contents?: true

Size: 355 Bytes

Versions: 5

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

module Mail
  module Notify
    class Mailer < ActionMailer::Base
      def view_mail(template_id, headers)
        mail(headers.merge(template_id: template_id))
      end

      def template_mail(template_id, headers)
        mail(headers.merge(body: '', subject: '', template_id: template_id))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mail-notify-0.2.1 lib/mail/notify/mailer.rb
mail-notify-0.2.0 lib/mail/notify/mailer.rb
mail-notify-0.1.0 lib/mail/notify/mailer.rb
mail-notify-0.0.3 lib/mail/notify/mailer.rb
mail-notify-0.0.2 lib/mail/notify/mailer.rb